Part Number Hot Search : 
BZT52C9 NP109N CGT200 DTA144 4AX103V5 M61500FP 1N5353A BZT52C9
Product Description
Full Text Search
 

To Download C505 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  data sheet 12.97 mi c r o c omp u ter componen t s C505 C505c / C505a C505ca 8-bit cmos microcontroller
edition 12.97 published by siemens ag, bereich halbleiter, marketing- kommunikation, balanstra?e 73, 81541 mnchen ? siemens ag 1997. all rights reserved. attention please! as far as patents or other rights of third parties are concerned, liability is only assumed for components, not for application s, processes and circuits implemented within components or assemblies. the information describes the type of component and shall not be considered as assured characteristics. terms of delivery and rights to change design reserved. for questions on technology, delivery and prices please contact the semiconductor group offices in germany or the siemens compa nies and representatives worldwide (see address list). due to technical requirements components may contain dangerous substances. for information on the types in question please cont act your nearest siemens office, semiconductor group. siemens ag is an approved cecc manufacturer. packing please use the recycling operators known to you. we can also help you C get in touch with your nearest sales office. by agreeme nt we will take packing material back, if it is sorted. you must bear the costs of transport. for packing material that is returned to us unsorted or which we are not obliged to accept, we shall have to invoice you for an y costs in- curred. components used in life-support devices or systems must be expressly authorized for such purpose! critical components 1 of the semiconductor group of siemens ag, may only be used in life-support devices or systems 2 with the express written approval of the semiconductor group of siemens ag. 1 a critical component is a component used in a life-support device or system whose failure can reasonably be expected to cause the failure of that life-support device or system, or to affect its safety or effectiveness of that device or system. 2 life support devices or systems are intended (a) to be implanted in the human body, or (b) to support and/or maintain and sust ain hu- man life. if they fail, it is reasonable to assume that the health of the user may be endangered.
semiconductor group 3 1997-12-01 8-bit cmos microcontroller advance information ? fully compatible to standard 8051 microcontroller ? superset of the 8051 architecture with 8 datapointers ? up to 20 mhz operating frequency C 375 ns instruction cycle time @16 mhz C 300 ns instruction cycle time @20 mhz (50 % duty cycle) ? on-chip program memory (with optional memory protection) C C505-2r/C505c-2r : 16k byte on-chip rom C C505a-4e/C505ca-4e: 32k byte on-chip otp C alternatively up to 64k byte external program memory ? 256 byte on-chip ram ? on-chip xram C C505/C505c : 256 byte C C505a/C505ca : 1k byte ? 32 + 2 digital i/o lines C four 8-bit digital i/o ports C one 2-bit digital i/o port (port 4) C port 1 with mixed analog/digital i/o capability (more features on next page) figure 1 C505 functional units i / o 8 analog inputs / mcb03628 on-chip emulation port 4 port 3 port 2 port 1 port 0 8 digit. i / o i / o i / o i / o (2-bit i / o port) support module timer 2 a / d converter C505c / C505ca only full-can controller core 8 datapointers program memory xram 256 byte ram 8-bit usart watchdog timer oscillator watchdog C505 / C505c: 8-bit C505a / C505ca: 10-bit c500 C505a / C505ca: 1 kbyte C505 / C505c: 256 byte timer 0 1 timer C505a / C505ca: 32 k otp C505 / C505c: 16 k rom C505 C505c C505a C505ca
semiconductor group 4 1997-12-01 C505 / C505c C505a / C505ca features (contd): ? three 16-bit timers/counters C timer 0 / 1 (c501 compatible) C timer 2 with 4 channels for 16-bit capture/compare operation ? full duplex serial interface with programmable baudrate generator (usart) ? full can module, version 2.0 b compliant (C505c and C505ca only) C 256 register/data bytes located in external data memory area C 1 mbaud can baudrate when operating frequency is equal to or above 8 mhz C internal can clock prescaler when input frequency is over 10 mhz ? on-chip a/d converter C up to 8 analog inputs C C505/C505c : 8-bit resolution C C505a/C505ca: 10-bit resolution ? twelve interrupt sources with four priority levels ? on-chip emulation support logic (enhanced hooks technology tm 1) ) ? programmable 15-bit watchdog timer ? oscillator watchdog ? fast power on reset ? power saving modes C slow-down mode C idle mode (can be combined with slow-down mode) C software power-down mode with wake up capability through p3.2/int0 or p4.1/rxdc pin ? p-mqfp-44 package ? pin configuration is compatible to c501, c504, c511/c513-family ? temperature ranges: sab-C505 versions t a = 0 to 70 c saf-C505 versions t a = C 40 to 85 c sah-C505 versions t a = C 40 to 110 c (max. operating frequency: tbd) sak-C505 versions t a = C 40 to 125 c (max. operating frequency: 12 mhz with 50% duty cycle) 1) enhanced hooks technology is a trademark and patent of metalink corporation licensed to siemens. table 1 differences in functionality of the C505 mcus device internal program memory xram size a/d converter resolution can controller rom otp C505-2rm C505-lm 16 kb C C C 256 b 256 b 8 bit 8 bit C C C505c-2rm C505c-lm 16 kb C C C 256 b 256 b 8 bit 8 bit 3 3 C505a-4em C 32 kb 1 kb 10 bit C C505ca-4em C 32 kb 1 kb 10 bit 3
semiconductor group 5 1997-12-01 C505 / C505c C505a / C505ca note: the ordering number of the rom types (dxxxx extension) is defined after program release (verification) of the customer. versions for the extended temperature range C 40 c to 110 c (sah-C505) and C 40 c to 125 c (sak-C505) are available on request. table 2 ordering information type ordering code package description (8-bit cmos microcontroller) sab-C505-2rm sab-C505-lm q67127-dxxxx q67127-c2057 p-mqfp-44 p-mqfp-44 with mask-programmable rom (16k), 20 mhz for external memory (20 mhz) saf-C505-2rm saf-C505-lm q67127-dxxxx q67127-c2056 p-mqfp-44 p-mqfp-44 extended temperature. C 40 c to 85 c : with mask-programmable rom (16k), 20 mhz for external memory (20 mhz) sab-C505c-2rm sab-C505c-lm q67127-dxxxx q67127-c2029 p-mqfp-44 p-mqfp-44 with mask-progr. rom (16k) and can, 20 mhz for external memory, with can (20 mhz) saf-C505c-2rm saf-C505c-lm q67127-dxxxx q67127-c2030 p-mqfp-44 p-mqfp-44 extended temperature. C 40 c to 85 c : with mask-progr. rom (16k) and can, 20 mhz for external memory, with can (20 mhz) sab-C505a-4em q67127-c2060 p-mqfp-44 with otp memory (32k), 20 mhz saf-C505a-4em q67127-c2061 p-mqfp-44 extended temperature. C 40 c to 85 c : with otp memory (32k), 20 mhz sab-C505ca-4em q67127-c1082 p-mqfp-44 with otp memory (32k) and can, 20 mhz sab-C505ca-4em q67127-c2058 p-mqfp-44 extended temperature. C 40 c to 85 c : with otp memory (32k) and can, 20 mhz
semiconductor group 6 1997-12-01 C505 / C505c C505a / C505ca figure 2 logic symbol additional literature for further information about the C505/C505c/C505a/C505ca the following literature is available: title ordering number C505 8-bit cmos microcontroller users manual b158-h7116-x-x-7600 c500 microcontroller family architecture and instruction set users manual b158-h6987-x-x-7600 c500 microcontroller family - pocket guide b158-h6986-x-x-7600 agnd aref v v ea psen reset ale xtal2 xtal1 2-bit digital i / o 8-bit digital i / o 8-bit digital i / o port 4 port 2 3 port port 8-bit digital i / o / 8-bit digital i / o 1 port 0 port v ss v cc C505 mcl03629 8-bit analog inputs C505c C505ca C505a
semiconductor group 7 1997-12-01 C505 / C505c C505a / C505ca figure 3 C505 pin configuration p-mqfp-44 package (top view) ea p0.6 / ad6 p0.7 / ad7 p0.5 / ad5 p2.6 / a14 p2.5 / a13 psen p2.7 / a15 ale p2.4 / a12 p2.3 / a11 xtal2 xtal1 p1.7 / an7 / t2 p3.2 / int0 p3.3 / int1 reset p1.6 / an6 / clkout p1.5 / an5 / t2ex 11 16 34 39 44 16 21 22 C505 mcp03630 p2.2 / a10 p2.1 / a9 v v cc ss p2.0 / a8 33 31 30 29 28 27 26 25 24 23 32 p0.4 / ad4 p3.0 / rxd p3.4 / t0 p3.5 / / t1 p3.1 / txd p1.4 / an4 v v aref agnd 2345 78 10 9 20 19 18 17 15 14 13 12 43 42 41 40 38 37 36 35 C505c p1.1 / an1 / int4 / cc1 p1.0 / an0 / int3 / cc0 p1.3 / an3 / int6 / cc3 p1.2 / an2 / int5 / cc2 p0.3 / ad3 p0.2 / ad2 p0.1 / ad1 p0.0 / ad0 p3.7 / rd p3.6 / wr C505a C505ca this pin functionality is not available in the C505 and C505a. p4.1 / rxdc p4.0 / txdc
semiconductor group 8 1997-12-01 C505 / C505c C505a / C505ca table 3 pin de?nitions and functions symbol pin number i/o *) function p1.0-p1.7 40-44,1-3 40 41 42 43 44 1 2 3 i/o port 1 is an 8-bit quasi-bidirectional port with internal pull-up ar- rangement. port 1 pins can be used for digital input/output or as analog inputs of the a/d converter. port 1 pins that have 1s written to them are pulled high by internal pull-up transistors and in that state can be used as inputs. as in- puts, port 1 pins being externally pulled low will source cur- rent ( i il , in the dc characteristics) because of the internal pullup transistors. port 1 pins are assigned to be used as analog inputs via the register p1ana. as secondary digital functions, port 1 contains the interrupt, timer, clock, capture and compare pins. the output latch corresponding to a secondary function must be pro- grammed to a one (1) for that function to operate (except for compare functions). the secondary functions are assigned to the pins of port 1 as follows: p1.0 / an0 / int3 / cc0 analog input channel 0 interrupt 3 input / capture/compare channel 0 i/o p1.1 / an1 / int4 / cc1 analog input channel 1/ interrupt 4 input / capture/compare channel 1 i/o p1.2 / an2 / int5 / cc2 analog input channel 2 / interrupt 5 input / capture/compare channel 2 i/o p1.3 / an3 / int6 / cc3 analog input channel 3 interrupt 6 input / capture/compare channel 4 i/o p1.4 / an4 analog input channel 4 p1.5 / an5 / t2ex analog input channel 5 / timer 2 external reload / trigger input p1.6 / an6 / clkout analog input channel 6 / system clock output p1.7 / an7 / t2 analog input channel 7 / counter 2 input port 1 is used for the low-order address byte during program verification of the C505-2r and C505c-2r. *) i = input o = output
semiconductor group 9 1997-12-01 C505 / C505c C505a / C505ca reset 4 i reset a high level on this pin for one machine cycle while the oscillator is running resets the device. an internal diffused resistor to v ss permits power-on reset using only an external capacitor to v cc . p3.0-p3.7 5, 7-13 5 7 8 9 10 11 12 13 i/o port 3 is an 8-bit quasi-bidirectional port with internal pull-up arrangement. port 3 pins that have 1s written to them are pulled high by the internal pull-up transistors and in that state can be used as inputs. as inputs, port 3 pins being externally pulled low will source current ( i il , in the dc characteristics) because of the internal pullup transistors. the output latch corresponding to a secondary function must be programmed to a one (1) for that function to operate (except for txd and wr ). the secondary functions are assigned to the pins of port 3 as follows: p3.0 / rxd receiver data input (asynch.) or data input/output (synch.) of serial interface p3.1 / txd transmitter data output (asynch.) or clock output (synch.) of serial interface p3.2 / int0 external interrupt 0 input / timer 0 gate control input p3.3 / int1 external interrupt 1 input / timer 1 gate control input p3.4 / t0 timer 0 counter input p3.5 / t1 timer 1 counter input p3.6 / wr wr control output; latches the data byte from port 0 into the external data memory p3.7 / rd rd control output; enables the external data memory *) i = input o = output table 3 pin de?nitions and functions (contd) symbol pin number i/o *) function
semiconductor group 10 1997-12-01 C505 / C505c C505a / C505ca p4.0 p4.1 6 28 i/o i/o port 4 is a 2-bit quasi-bidirectional port with internal pull-up arrangement. port 4 pins that have 1s written to them are pulled high by the internal pull-up transistors and in that state can be used as inputs. as inputs, port 4 pins being externally pulled low will source current ( i il , in the dc characteristics) because of the internal pullup transistors. the output latch corresponding to the secondary function rxdc must be programmed to a one (1) for that function to operate. the secondary functions are assigned to the two pins of port 4 as follows (C505c and C505ca only) : p4.0 / txdc transmitter output of can controller p4.1 / rxdc receiver input of can controller xtal2 14 o xtal2 output of the inverting oscillator amplifier. xtal1 15 i xtal1 input to the inverting oscillator amplifier and input to the internal clock generator circuits. to drive the device from an external clock source, xtal1 should be driven, while xtal2 is left unconnected. to operate above a frequency of 16 mhz, a duty cycle of the etxernal clock signal of 50 % should be maintained. minimum and maximum high and low times as well as rise/ fall times specified in the ac characteristics must be observed. *) i = input o = output table 3 pin de?nitions and functions (contd) symbol pin number i/o *) function
semiconductor group 11 1997-12-01 C505 / C505c C505a / C505ca p2.0-p2.7 18-25 i/o port 2 is a an 8-bit quasi-bidirectional i/o port with internal pullup resistors. port 2 pins that have 1s written to them are pulled high by the internal pullup resistors, and in that state can be used as inputs. as inputs, port 2 pins being externally pulled low will source current ( i il , in the dc characteristics) because of the internal pullup resistors. port 2 emits the high-order address byte during fetches from external program memory and during accesses to external data memory that use 16-bit addresses (movx @dptr). in this application it uses strong internal pullup transistors when issuing 1s. during accesses to external data memory that use 8-bit addresses (movx @ri), port 2 issues the contents of the p2 special function register and uses only the internal pullup resistors. psen 26 o the program store enable output is a control signal that enables the external program memory to the bus during external fetch operations. it is activated every three oscillator periods except during external data memory accesses. remains high during internal program execution. this pin should not be driven during reset operation. ale 27 o the address latch enable output is used for latching the low-byte of the address into external memory during normal operation. it is activated every three oscillator periods except during an external data memory access. when instructions are executed from internal rom or otp (ea =1) the ale generation can be disabled by bit eale in sfr syscon. ale should not be driven during reset operation. *) i = input o = output table 3 pin de?nitions and functions (contd) symbol pin number i/o *) function
semiconductor group 12 1997-12-01 C505 / C505c C505a / C505ca ea 29 i external access enable when held at high level, instructions are fetched from the internal rom or otp memory when the pc is less than 4000 h (C505 and C505c) or less than 8000h (C505a and C505ca). when held at low level, the C505 fetches all instructions from external program memory. ea should not be driven during reset operation. for the C505-l and the C505c-l this pin must be tied low. p0.0-p0.7 37-30 i/o port 0 is an 8-bit open-drain bidirectional i/o port. port 0 pins that have 1s written to them float, and in that state can be used as high-impendance inputs. port 0 is also the multiplexed low-order address and data bus during accesses to external program or data memory. in this application it uses strong internal pullup transistors when issuing 1s. port 0 also outputs the code bytes during program verification in the C505-2r/C505c-2r. external pullup resistors are required during program verification. v aref 38 C reference voltage for the a/d converter. v agnd 39 C reference ground for the a/d converter. v ss 16 C ground (0 v) v cc 17 C power supply (+ 5 v) *) i = input o = output table 3 pin de?nitions and functions (contd) symbol pin number i/o *) function
semiconductor group 13 1997-12-01 C505 / C505c C505a / C505ca figure 4 block diagram of the C505/C505c/C505a/C505ca 26.09.1997 alfes - boding watchdog oscillator port 4 port 3 port 2 port 1 8-bit digit. i / o port 0 xram ram rom otp programmable watchdog timer usart interrupt unit 8- / 10-bit a / d converter emulation support logic port 0 port 1 port 2 port 3 port 4 osc & timing s & h xtal1 xtal2 reset ale psen ea v aref agnd v 8-bit digit. i / o / 8-bit digit. i / o 8-bit digit. i / o 2-bit digit. i / o mcb03631 8 datapointers cpu 256 byte baudrate generator timer 0 timer 1 timer 2 8-bit analog in mux cc v ss v C505c / C505ca only. 1 kbyte 1) 256 byte 1) 16 k / 32 kbyte 1) 1) C505 / C505c: 256b xram / 16kb rom / 8-bit adc C505a / C505ca: 1kb xram / 32kb otp / 10-bit adc 25.11.1997 full-can controller reg. / data 256 byte
semiconductor group 14 1997-12-01 C505 / C505c C505a / C505ca cpu the C505 is efficient both as a controller and as an arithmetic processor. it has extensive facilities for binary and bcd arithmetic and excels in its bit-handling capabilities. efficient use of program memory results from an instruction set consisting of 44 % one-byte, 41 % two-byte, and 15% three- byte instructions. with a 16 mhz crystal, 58% of the instructions are executed in 375 ns. special function register psw (address d0 h ) reset value : 00 h bit function cy carry flag used by arithmetic instruction. ac auxiliary carry flag used by instructions which execute bcd operations. f0 general purpose flag rs1 rs0 register bank select control bits these bits are used to select one of the four register banks. ov overflow flag used by arithmetic instruction. f1 general purpose flag p parity flag set/cleared by hardware after each instruction to indicate an odd/even number of "one" bits in the accumulator, i.e. even parity. cy ac f0 rs1 rs0 ov f1 p d0 h psw d7 h d6 h d5 h d4 h d3 h d2 h d1 h d0 h bit no. msb lsb rs1 rs0 function 0 0 bank 0 selected, data address 00 h -07 h 0 1 bank 1 selected, data address 08 h -0f h 1 0 bank 2 selected, data address 10 h -17 h 1 1 bank 3 selected, data address 18 h -1f h
semiconductor group 15 1997-12-01 C505 / C505c C505a / C505ca memory organization the C505 cpu manipulates operands in the following four address spaces: C on-chip program memory : 16 kbyte rom (C505-2r/C505c-2r) or 32 kbyte otp (C505a-4e/C505ca-4e) C totally up to 64 kbyte internal/external program memory C up to 64 kbyte of external data memory C 256 bytes of internal data memory C internal xram data memory : 256 byte (C505/C505c) 1k byte (C505a/C505ca) C a 128 byte special function register area figure 5 illustrates the memory address spaces of the C505 versions. figure 5 C505 memory map memory map ext. int. (ea = 1) ext. data memory int. can contr. (256 byte) (ea = 0) ext. ffff h 8000 h 3fff / h 0000 h data memory ext. f700 h f6ff h 0000 h 00 h h 7f regs. function special ram internal ram internal h 80 h ff addr. indirect addr. direct alternatively "code space" "data space" "internal data space" mcb03632 xram internal ffff h 80 h ff h see table below for detailed data memory partitioning h 4000 / 7fff h device can area C505 C505c C505a C505ca f700 f7ff hh unused area f800 feff hh f700 feff hh ff00 ffff xram area hh "data space" f700 to ffff : hh f700 f7ff hh f800 fbff f700 fbff h h h h ff00 ffff hh fc00 ffff hh fc00 ffff hh unused area
semiconductor group 16 1997-12-01 C505 / C505c C505a / C505ca reset and system clock the reset input is an active high input at pin reset. since the reset is synchronized internally, the reset pin must be held high for at least two machine cycles (12 oscillator periods) while the oscillator is running. a pulldown resistor is internally connected to v ss to allow a power-up reset with an external capacitor only. an automatic reset can be obtained when v cc is applied by connecting the reset pin to v cc via a capacitor. figure 6 shows the possible reset circuitries. figure 6 reset circuitries + + C505 reset c) & mcs03633 v cc cc v reset reset cc v C505c C505ca C505a C505 C505ca C505c C505a a) C505a C505c C505ca b) C505
semiconductor group 17 1997-12-01 C505 / C505c C505a / C505ca figure 7 shows the recommended oscillator circuits for crystal and external clock operation. figure 7 recommended oscillator circuitries mcs03634 c 2 - 20 mhz xtal2 xtal1 c = 20 pf 10 pf for crystal operation c cc external signal clock v n.c. xtal1 xtal2 C505 C505c C505a C505ca C505c C505a C505ca C505
semiconductor group 18 1997-12-01 C505 / C505c C505a / C505ca multiple datapointers as a functional enhancement to the standard 8051 architecture, the C505 contains eight 16-bit datapointers instead of only one datapointer. the instruction set uses just one of these datapointers at a time. the selection of the actual datapointer is done in the special function regsiter dpsel. figure 8 illustrates the datapointer addressing mechanism. figure 8 external data memory addressing using multiple datapointers dph(83 ) dpl(82 ) dptr0 dptr7 .0 .1 .2 - - - - - dpsel(92 ) dpsel selected data- pointer .2 .1 .0 dptr 0 0 0 0 0 0 1 dptr 1 0 1 0 dptr 2 0 1 1 dptr 3 1 0 0 dptr 4 1 0 1 dptr 5 1 1 0 dptr 6 1 1 1 dptr 7 mcd00779 external data memory h hh
semiconductor group 19 1997-12-01 C505 / C505c C505a / C505ca enhanced hooks emulation concept the enhanced hooks emulation concept of the c500 microcontroller family is a new, innovative way to control the execution of c500 mcus and to gain extensive information on the internal operation of the controllers. emulation of on-chip rom based programs is possible, too. each production chip has built-in logic for the supprt of the enhanced hooks emulation concept. therefore, no costly bond-out chips are necessary for emulation. this also ensure that emulation and production chips are identical. the enhanced hooks technology tm 1) , which requires embedded logic in the c500 allows the c500 together with an eh-ic to function similar to a bond-out chip. this simplifies the design and reduces costs of an ice-system. ice-systems using an eh-ic and a compatible c500 are able to emulate all operating modes of the different versions of the c500 microcontrollers. this includes emulation of rom, rom with code rollover and romless modes of operation. it is also able to operate in single step mode and to read the sfrs after a break. figure 9 basic c500 mcu enhanced hooks concept configuration port 0, port 2 and some of the control lines of the c500 based mcu are used by enhanced hooks emulation concept to control the operation of the device during emulation and to transfer informations about the program execution and data transfer between the external emulation hardware (ice-system) and the c500 mcu. 1) enhanced hooks technology is a trademark and patent of metalink corporation licensed to siemens. mcs02647 syscon pcon tcon reset ea psen ale port 0 port 2 i/o ports optional port 3 port 1 c500 mcu interface circuit enhanced hooks rport 0 rport 2 rtcon rpcon rsyscon tea tale tpsen eh-ic target system interface ice-system interface to emulation hardware
semiconductor group 20 1997-12-01 C505 / C505c C505a / C505ca special function registers the registers, except the program counter and the four general purpose register banks, reside in the special function register area. the special function register area consists of two portions : the standard special function register area and the mapped special function register area. five special function register of the C505 (pcon1,p1ana, vr0, vr1, vr2) are located in the mapped special function register area. for accessing the mapped special function register area, bit rmap in special function register syscon must be set. all other special function registers are located in the standard special function register area which is accessed when rmap is cleared (0). the registers and data locations of the can controller (can-sfrs) are located in the external data memory area at addresses f700 h to f7ff h .. special function register syscon (address b1 h ) reset value : xx100x01 b (C505ca only) reset value : xx100001 b as long as bit rmap is set, mapped special function register area can be accessed. this bit is not cleared by hardware automatically. thus, when non-mapped/mapped registers are to be accessed, the bit rmap must be cleared/set respectively by software. all sfrs with addresses where address bits 0-2 are 0 (e.g. 80 h , 88 h , 90 h , 98 h , ..., f8 h , ff h ) are bitaddressable. the 52 special function registers (sfrs) in the standard and mapped sfr area include pointers and registers that provide an interface between the cpu and the other on-chip peripherals. the sfrs of the C505 are listed in table 4 and table 5 . in table 4 they are organized in groups which refer to the functional blocks of the C505. the can-sfrs (applicable for the C505c and C505ca only) are also included in table 4 . table 5 illustrates the contents of the sfrs in numeric order of their addresses. table 6 list the can-sfrs in numeric order of their addresses. . bit function rmap special function register map bit rmap = 0 : the access to the non-mapped (standard) special function register area is enabled. rmap = 1 : the access to the mapped special function register area is enabled. 76543210 eale rmap cmod b1 h syscon bit no. msb lsb cswo xmap1 CC xmap0 the functions of the shaded bits are not described here. 1) 1) this bit is only available in the C505ca.
semiconductor group 21 1997-12-01 C505 / C505c C505a / C505ca table 4 special function registers - functional blocks block symbol name address contents after reset cpu acc b dph dpl dpsel psw sp syscon 2) vr0 4) vr1 4) vr2 4) accumulator b-register data pointer, high byte data pointer, low byte data pointer select register program status word register stack pointer system control register version register 0 version register 1 version register 2 e0 h 1) f0 h 1) 83 h 82 h 92 h d0 h 1) 81 h b1 h fc h fd h fd h fe h 00 h 00 h 00 h 00 h xxxxx000 b 3) 00 h 07 h xx100x01 b 3) 6) xx100001 b 3) 7) c5 h 05 h 6) 85 h 7) 5) a/d- converter adcon0 2) adcon1 addat adst addath addatl p1ana 2) 4) a/d converter control register 0 a/d converter control register 1 a/d converter data reg. (C505/C505c) a/d converter start reg. (C505/C505c) a/d converter high byte data register (C505a/C505ca) a/d converter low byte data register (C505a/C505ca) port 1 analog input selection register d8 h 1) dc h d9 h da h d9 h da h 90 h 1) 00x00000 b 3) 01xxx000 b 3) 00 h xx h 3) 00 h 00xxxxxx b 3) ff h interrupt system ien0 2) ien1 2) ip0 2) ip1 tcon 2) t2con 2) scon 2) ircon interrupt enable register 0 interrupt enable register 1 interrupt priority register 0 interrupt priority register 1 timer control register timer 2 control register serial channel control register interrupt request control register a8 h 1) b8 h 1) a9 h b9 h 88 h 1) c8 h 1) 98 h 1) c0 h 1) 00 h 00 h 00 h xx000000 b 3) 00 h 00x00000 b 00 h 00 h xram xpage syscon 2) page address register for extended on-chip xram and can controller system control register 91 h b1 h 00 h xx100x01 b 3) 6) xx100001 b 3) 7) 1) bit-addressable special function registers 2) this special function register is listed repeatedly since some bits of it also belong to other functional blocks. 3) x means that the value is undefined and the location is reserved 4) this sfr is a mapped sfr. for accessing this sfr, bit rmap in sfr syscon must be set. 5) the content of this sfr varies with the actual step of the C505 (eg. 01 h for the first step) 6) C505 / C505a only 7) C505c / C505ca only
semiconductor group 22 1997-12-01 C505 / C505c C505a / C505ca ports p0 p1 p1ana 2) 4) p2 p3 p4 port 0 port 1 port 1 analog input selection register port 2 port 3 port 4 80 h 1) 90 h 1) 90 h 1) a0 h 1) b0 h 1) e8h 1) ff h ff h ff h ff h ff h xxxxxx11 b serial channel adcon0 2) pcon 2) sbuf scon srell srelh a/d converter control register 0 power control register serial channel buffer register serial channel control register serial channel reload register, low byte serial channel reload register, high byte d8 h 1) 87 h 99 h 98 h 1) aa h ba h 00x00000 b 3) 00 h xx h 3) 00 h d9 h xxxxxx11 b 3) timer 0/ timer 1 tcon th0 th1 tl0 tl1 tmod timer 0/1 control register timer 0, high byte timer 1, high byte timer 0, low byte timer 1, low byte timer mode register 88 h 1) 8c h 8d h 8a h 8b h 89 h 00 h 00 h 00 h 00 h 00 h 00 h compare/ capture unit / timer 2 ccen cch1 cch2 cch3 ccl1 ccl2 ccl3 crch crcl th2 tl2 t2con ien0 2) ien1 2) comp./capture enable reg. comp./capture reg. 1, high byte comp./capture reg. 2, high byte comp./capture reg. 3, high byte comp./capture reg. 1, low byte comp./capture reg. 2, low byte comp./capture reg. 3, low byte reload register high byte reload register low byte timer 2, high byte timer 2, low byte timer 2 control register interrupt enable register 0 interrupt enable register 1 c1 h c3 h c5 h c7 h c2 h c4 h c6 h cb h ca h cd h cc h c8 h 1) a8 h 1) b8 h 1) 00 h 3) 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00x00000 b 3) 00 h 00 h watchdog wdtrel ien0 2) ien1 2) ip0 2) watchdog timer reload register interrupt enable register 0 interrupt enable register 1 interrupt priority register 0 86 h a8 h 1) b8 h 1) a9 h 00 h 00 h 00 h 00 h pow. save modes pcon 2) pcon1 4) power control register power control register 1 87 h 88 h 1) 00 h 0xx0xxxx b 3) 1) bit-addressable special function registers 2) this special function register is listed repeatedly since some bits of it also belong to other functional blocks. 3) x means that the value is undefined and the location is reserved 4) sfr is located in the mapped sfr area. for accessing this sfr, bit rmap in sfr syscon must be set. table 4 special function registers - functional blocks (contd) block symbol name address contents after reset
semiconductor group 23 1997-12-01 C505 / C505c C505a / C505ca can controller (C505c/ C505ca only) cr sr ir btr0 btr1 gms0 gms1 ugml0 ugml1 lgml0 lgml1 umlm0 umlm1 lmlm0 lmlm1 mcr0 mcr1 uar0 uar1 lar0 lar1 mcfg db0n db1n db2n db3n db4n db5n db6n db7n control register status register interrupt register bit timing register low bit timing register high global mask short register low global mask short register high upper global mask long register low upper global mask long register high lower global mask long register low lower global mask long register high upper mask of last message register low upper mask of last message register high lower mask of last message register low lower mask of last message register high message object registers : message control register low message control register high upper arbitration register low upper arbitration register high lower arbitration register low lower arbitration register high message configuration register message data byte 0 message data byte 1 message data byte 2 message data byte 3 message data byte 4 message data byte 5 message data byte 6 message data byte 7 f700 h f701 h f702 h f704 h f705 h f706 h f707 h f708 h f709 h f70a h f70b h f70c h f70d h f70e h f70f h f7n0 h 5) f7n1 h 5) f7n2 h 5) f7n3 h 5) f7n4 h 5) f7n5 h 5) f7n6 h 5) f7n7 h 5) f7n8 h 5) f7n9 h 5) f7na h 5) f7nb h 5) f7nc h 5) f7nd h 5) f7ne h 5) 01 h xx h 3) xx h 3) uu h 3) 0uuuuuuu b 3) uu h 3) uuu11111 b 3) uu h 3) uu h 3) uu h 3) uuuuu000 b 3) uu h 3) uu h 3) uu h 3) uuuuu000 b 3) uu h 3) uu h 3) uu h 3) uu h 3) uu h 3) uuuuu000 b 3) uuuuuu00 b 3) xx h 3) xx h 3) xx h 3) xx h 3) xx h 3) xx h 3) xx h 3) xx h 3) 1) bit-addressable special function registers 2) this special function register is listed repeatedly since some bits of it also belong to other functional blocks. 3) x means that the value is undefined and the location is reserved. u means that the value is unchanged by a reset operation. u values are undefined (as x) after a power-on reset operation 4) sfr is located in the mapped sfr area. for accessing this sfr, bit rmap in sfr syscon must be set. 5) the notation n (n= 1 to f) in the message object address definition defines the number of the related message object. table 4 special function registers - functional blocks (contd) block symbol name address contents after reset
semiconductor group 24 1997-12-01 C505 / C505c C505a / C505ca table 5 contents of the sfrs, sfrs in numeric order of their addresses addr register content after reset 1) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 80 h 2) p0 ff h .7 .6 .5 .4 .3 .2 .1 .0 81 h sp 07 h .7 .6 .5 .4 .3 .2 .1 .0 82 h dpl 00 h .7 .6 .5 .4 .3 .2 .1 .0 83 h dph 00 h .7 .6 .5 .4 .3 .2 .1 .0 86 h wdtrel 00 h wdt psel .6 .5 .4 .3 .2 .1 .0 87 h pcon 00 h smod pds idls sd gf1 gf0 pde idle 88 h 2) tcon 00 h tf1 tr1 tf0 tr0 ie1 it1 ie0 it0 88 h 3) pcon1 0xx0- xxxx b ewpd C C ws C C C C 89 h tmod 00 h gate c/t m1 m0 gate c/t m1 m0 8a h tl0 00 h .7 .6 .5 .4 .3 .2 .1 .0 8b h tl1 00 h .7 .6 .5 .4 .3 .2 .1 .0 8c h th0 00 h .7 .6 .5 .4 .3 .2 .1 .0 8d h th1 00 h .7 .6 .5 .4 .3 .2 .1 .0 90 h 2) p1 ff h t2 clk- out t2ex .4 .3 int5 int4 .0 90 h 3) p1ana ff h ean7 ean6 ean5 ean4 ean3 ean2 ean1 ean0 91 h xpage 00 h .7 .6 .5 .4 .3 .2 .1 .0 92 h dpsel xxxx- x000 b CCCCC.2.1.0 98 h 2) scon 00 h sm0 sm1 sm2 ren tb8 rb8 ti ri 99 h sbuf xx h .7 .6 .5 .4 .3 .2 .1 .0 a0 h 2) p2 ff h .7 .6 .5 .4 .3 .2 .1 .0 a8 h 2) ien0 00 h ea wdt et2 es et1 ex1 et0 ex0 a9 h ip0 00 h owds wdts .5 .4 .3 .2 .1 .0 aa h srell d9 h .7 .6 .5 .4 .3 .2 .1 .0 1) x means that the value is undefined and the location is reserved 2) bit-addressable special function registers 3) sfr is located in the mapped sfr area. for accessing this sfr, bit rmap in sfr syscon must be set.
semiconductor group 25 1997-12-01 C505 / C505c C505a / C505ca b0 h 2) p3 ff h rd wr t1 t0 int1 int0 txd rxd b1 h syscon 4) xx10- 0x01 b C C eale rmap cmod C xmap1 xmap0 b1 h syscon 4) xx10- 0001 b C C eale rmap cmod cswo xmap1 xmap0 b8 h 2) ien1 3) 00 h exen2 swdt ex6 ex5 ex4 ex3 0 eadc b8 h 2) ien1 4) 00 h exen2 swdt ex6 ex5 ex4 ex3 ecan eadc b9 h ip1 xx00- 0000 b C C .5.4.3.2.1.0 ba h srelh xxxx- xx11 b CCCCCC.1.0 c0 h 2) ircon 00 h exf2 tf2 iex6 iex5 iex4 iex3 swi iadc c1 h ccen 00 h coca h3 cocal 3 coca h2 cocal 2 coca h1 cocal 1 coca h0 cocal 0 c2 h ccl1 00 h .7 .6 .5 .4 .3 .2 .1 .0 c3 h cch1 00 h .7 .6 .5 .4 .3 .2 .1 .0 c4 h ccl2 00 h .7 .6 .5 .4 .3 .2 .1 .0 c5 h cch2 00 h .7 .6 .5 .4 .3 .2 .1 .0 c6 h ccl3 00 h .7 .6 .5 .4 .3 .2 .1 .0 c7 h cch3 00 h .7 .6 .5 .4 .3 .2 .1 .0 c8 h 2) t2con 00x0- 0000 b t2ps i3fr C t2r1 t2r0 t2cm t2i1 t2i0 ca h crcl 00 h .7 .6 .5 .4 .3 .2 .1 .0 cb h crch 00 h .7 .6 .5 .4 .3 .2 .1 .0 cc h tl2 00 h .7 .6 .5 .4 .3 .2 .1 .0 cd h th2 00 h .7 .6 .5 .4 .3 .2 .1 .0 d0 h 2) psw 00 h cy ac f0 rs1 rs0 ov f1 p d8 h 2) adcon0 00x0- 0000 b bd clk C bsy adm mx2 mx1 mx0 d9 h addat 3) 00 h .7 .6 .5 .4 .3 .2 .1 .0 1) x means that the value is undefined and the location is reserved 2) bit-addressable special function registers 3) C505 / C505a only 4) C505c / C505ca only table 5 contents of the sfrs, sfrs in numeric order of their addresses (contd) addr register content after reset 1) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
semiconductor group 26 1997-12-01 C505 / C505c C505a / C505ca d9 h addath 7) 00 h .9 .8 .7 .6 .5 .4 .3 .2 da h adst 6) xxxx- xxxx b CCCCCCCC da h addatl 7) 00xx- xxxx b .1.0CCCCCC dc h adcon1 01xx- x000 b adcl1 adcl0 C C C mx2 mx1 mx0 e0 h 2) acc 00 h .7 .6 .5 .4 .3 .2 .1 .0 e8 h 2) p4 xxxx- xx11 b C C C C C C rxdc txdc f0 h 2) b 00 h .7 .6 .5 .4 .3 .2 .1 .0 fc h 3)4) vr0 c5 h 110001?1 fd h 3)4) vr1 05 h 00000101 fe h 3)4) vr2 01 h 5) 6) 11 h 5) 7) .7 .6 .5 .4 .3 .2 .1 .0 1) x means that the value is undefined and the location is reserved 2) bit-addressable special function registers 3) sfr is located in the mapped sfr area. for accessing this sfr, bit rmap in sfr syscon must be set. 4) these are read-only registers 5) the content of this sfr varies with the actual of the step C505 (eg. 01 h or 11 h for the first step) 6) C505 / C505c only 7) C505a / C505ca only table 5 contents of the sfrs, sfrs in numeric order of their addresses (contd) addr register content after reset 1) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
semiconductor group 27 1997-12-01 C505 / C505c C505a / C505ca table 6 contents of the can registers in numeric order of their addresses (C505c/C505ca only) addr. n=1-f h 1) register content after reset 2) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 f700 h cr 01 h test cce 0 0 eie sie ie init f701 h sr xx h boff ewrn C rxok txok lec2 lec1 lec0 f702 h ir xx h intid f704 h btr0 uu h sjw brp f705 h btr1 0uuu. uuuu b 0 tseg2 tseg1 f706 h gms0 uu h id28-21 f707 h gms1 uuu1. 1111 b id20-18 11111 f708 h ugml0 uu h id28-21 f709 h ugml1 uu h id20-13 f70a h lgml0 uu h id12-5 f70b h lgml1 uuuu. u000 b id4-0 0 0 0 f70c h umlm0 uu h id28-21 f70d h umlm1 uu h id20-18 id17-13 f70e h lmlm0 uu h id12-5 f70f h lmlm1 uuuu. u000 b id4-0 0 0 0 f7n0 h mcr0 uu h msgval txie rxie intpnd f7n1 h mcr1 uu h rmtpnd txrq msglst cpuupd newdat f7n2 h uar0 uu h id28-21 f7n3 h uar1 uu h id20-18 id17-13 f7n4 h lar0 uu h id12-5 f7n5 h lar1 uuuu. u000 b id4-0 0 0 0 f7n6 h mcfg uuuu. uu00 b dlc dir xtd 0 0 1) the notation n (n= 1 to f) in the address definition defines the number of the related message object. 2) x means that the value is undefined and the location is reserved. u means that the value is unchanged by a reset operation. u values are undefined (as x) after a power-on reset operation
semiconductor group 28 1997-12-01 C505 / C505c C505a / C505ca f7n7 h db0n xx h .7 .6 .5 .4 .3 .2 .1 .0 f7n8 h db1n xx h .7 .6 .5 .4 .3 .2 .1 .0 f7n9 h db2n xx h .7 .6 .5 .4 .3 .2 .1 .0 f7na h db3n xx h .7 .6 .5 .4 .3 .2 .1 .0 f7nb h db4n xx h .7 .6 .5 .4 .3 .2 .1 .0 f7nc h db5n xx h .7 .6 .5 .4 .3 .2 .1 .0 f7nd h db6n xx h .7 .6 .5 .4 .3 .2 .1 .0 f7ne h db7n xx h .7 .6 .5 .4 .3 .2 .1 .0 1) the notation n (n= 1 to f) in the address definition defines the number of the related message object. 2) x means that the value is undefined and the location is reserved. u means that the value is unchanged by a reset operation. u values are undefined (as x after a power-on reset operation table 6 contents of the can registers in numeric order of their addresses (contd) (C505c/C505ca only) addr. n=1-f h 1) register content after reset 2) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
semiconductor group 29 1997-12-01 C505 / C505c C505a / C505ca i/o ports the C505 has four 8-bit i/o ports and one 2-bit i/o port. port 0 is an open-drain bidirectional i/o port, while ports 1 to 4 are quasi-bidirectional i/o ports with internal pullup resistors. that means, when configured as inputs, ports 1 to 4 will be pulled high and will source current when externally pulled low. port 0 will float when configured as input. the output drivers of port 0 and 2 and the input buffers of port 0 are also used for accessing external memory. in this application, port 0 outputs the low byte of the external memory address, time multiplexed with the byte being written or read. port 2 outputs the high byte of the external memory address when the address is 16 bits wide. otherwise, the port 2 pins continue emitting the p2 sfr contents. in this function, port 0 is not an open-drain port, but uses a strong internal pullup fet. port 4 is 2-bit i/o port with can controller specific alternate functions. the eight analog input lines are realized as mixed digital/analog inputs. the 8 analog inputs, an0-an7, are located at the port 1 pins p1.0 to p1.7. after reset, all analog inputs are disabled and the related pins of port 1 are configured as digital inputs. the analog function of a specific port 1 pin is enabled by bits in the sfr p1ana. writing a 0 to a bit position of p1ana assigns the corresponding pin to operate as analog input. note: p1ana is a mapped sfr and can be only accessed if bit rmap in sfr syscon is set.
semiconductor group 30 1997-12-01 C505 / C505c C505a / C505ca timer / counter 0 and 1 timer/counter 0 and 1 can be used in four operating modes as listed in table 7 : in the timer function (c/t = 0) the register is incremented every machine cycle. therefore the count rate is f osc /6. in the counter function the register is incremented in response to a 1-to-0 transition at its corresponding external input pin (p3.4/t0, p3.5/t1). since it takes two machine cycles to detect a falling edge the max. count rate is f osc /12. external inputs int0 and int1 (p3.2, p3.3) can be programmed to function as a gate to facilitate pulse width measurements. figure 10 illustrates the input clock logic. figure 10 timer/counter 0 and 1 input clock logic table 7 timer/counter 0 and 1 operating modes mode description tmod input clock m1 m0 internal external (max) 0 8-bit timer/counter with a divide-by-32 prescaler 00 f osc /6x32 f osc /12x32 1 16-bit timer/counter 1 1 f osc /6 f osc /12 2 8-bit timer/counter with 8-bit autoreload 10 3 timer/counter 0 used as one 8-bit timer/counter and one 8-bit timer timer 1 stops 11 mcs03117 1 & osc c/t = 0 c/t = 1 control =1 6 tr1 p3.5/t1 (tmod) p3.2/int0 f timer 0/1 input clock osc /6 p3.4/t0 tr0 gate p3.3/int1 _ <
semiconductor group 31 1997-12-01 C505 / C505c C505a / C505ca timer/counter 2 with compare/capture/reload the timer 2 of the C505 provides additional compare/capture/reload features. which allow the selection of the following operating modes: C compare : up to 4 pwm signals with 16-bit/300 ns resolution (@ 20 mhz clock) C capture : up to 4 high speed capture inputs with 300 ns resolution C reload : modulation of timer 2 cycle time the block diagram in figure 11 shows the general configuration of timer 2 with the additional compare/capture/reload registers. the i/o pins which can used for timer 2 control are located as multifunctional port functions at port 1. figure 11 timer 2 block diagram mcb02730 comparator ccl3/cch3 capture input/ output control p1.0/ int3/ cc0 cc1 int4/ p1.1/ cc2 int5/ p1.2/ cc3 int6/ p1.2/ ccl2/cch2 comparator ccl1/cch1 comparator crcl/crch comparator bit 16 16 bit 16 bit 16 bit osc 6 12 f osc t2ps sync. p1.7/ t2 t2ex p1.5/ sync. & t2i1 t2i0 timer 2 th2 tl2 tf2 reload exen2 reload 1 exf2 interrupt request compare _ <
semiconductor group 32 1997-12-01 C505 / C505c C505a / C505ca timer 2 operating modes the timer 2, which is a 16-bit-wide register, can operate as timer, event counter, or gated timer. a roll-over of the count value in tl2/th2 from all 1s to all 0s sets the timer overflow flag tf2 in sfr ircon, which can generate an interrupt. the bits in register t2con are used to control the timer 2 operation. timer mode : in timer function, the count rate is derived from the oscillator frequency. a prescaler offers the possibility of selecting a count rate of 1/6 or 1/12 of the oscillator frequency. gated timer mode : in gated timer function, the external input pin t2 (p1.7) functions as a gate to the input of timer 2. lf t2 is high, the internal clock input is gated to the timer. t2 = 0 stops the counting procedure. this facilitates pulse width measurements. the external gate signal is sampled once every machine cycle. event counter mode : in the event counter function. the timer 2 is incremented in response to a 1- to-0 transition at its corresponding external input pin t2 (p1.7). in this function, the external input is sampled every machine cycle. since it takes two machine cycles (12 oscillator periods) to recognize a 1-to-0 transition, the maximum count rate is 1/6 of the oscillator frequency. there are no restrictions on the duty cycle of the external input signal, but to ensure that a given level is sampled at least once before it changes, it must be held for at least one full machine cycle. reload of timer 2 : two reload modes are selectable: in mode 0, when timer 2 rolls over from all 1s to all 0s, it not only sets tf2 but also causes the timer 2 registers to be loaded with the 16-bit value in the crc register, which is preset by software. in mode 1, a 16-bit reload from the crc register is caused by a negative transition at the correspon- ding input pin p1.5/t2ex. this transition will also set flag exf2 if bit exen2 in sfr ien1 has been set.
semiconductor group 33 1997-12-01 C505 / C505c C505a / C505ca timer 2 compare modes the compare function of a timer/register combination operates as follows : the 16-bit value stored in a compare or compare/capture register is compared with the contents of the timer register; if the count value in the timer register matches the stored value, an appropriate output signal is generated at a corresponding port pin and an interrupt can be generated. compare mode 0 in compare mode 0, upon matching the timer and compare register contents, the output signal changes from low to high. lt goes back to a low level on timer overflow. as long as compare mode 0 is enabled, the appropriate output pin is controlled by the timer circuit only and writing to the port will have no effect. figure 12 shows a functional diagram of a port circuit when used in compare mode 0. the port latch is directly controlled by the timer overflow and compare match signals. the input line from the internal bus and the write-to-latch line of the port latch are disconnected when compare mode 0 is enabled. figure 12 port latch in compare mode 0 mcs02661 latch port q q clk d port pin read pin cc v read latch port circuit internal bus latch write to compare reg. compare register circuit comparator timer register timer circuit compare match s r overflow timer 16 bit bit 16
semiconductor group 34 1997-12-01 C505 / C505c C505a / C505ca compare mode 1 if compare mode 1 is enabled and the software writes to the appropriate output latch at the port, the new value will not appear at the output pin until the next compare match occurs. thus, it can be choosen whether the output signal has to make a new transition (1-to-0 or 0-to-1, depending on the actual pin-level) or should keep its old value at the time when the timer value matches the stored compare value. in compare mode 1 (see figure 13 ) the port circuit consists of two separate latches. one latch (which acts as a "shadow latch") can be written under software control, but its value will only be transferred to the port latch (and thus to the port pin) when a compare match occurs. figure 13 compare function in compare mode 1 timer 2 capture modes each of the compare/capture registers cc1 to cc3 and the crc register can be used to latch the current 16-bit value of the timer 2 registers tl2 and th2. two different modes are provided for this function. in mode 0 , the external event causing a capture is : C for cc registers 1 to 3: a positive transition at pins cc1 to cc3 of port 1 C for the crc register: a positive or negative transition at the corresponding pin, depending on the status of the bit i3fr in sfr t2con. in mode 1 a capture occurs in response to a write instruction to the low order byte of a capture register. the write-to-register signal (e.g. write-to-crcl) is used to initiate a capture. the timer 2 contents will be latched into the appropriate capture register in the cycle following the write instruction. in this mode no interrupt request will be generated. mcs02662 latch port q q clk d read pin cc v d clk q shadow latch read latch port circuit internal bus latch write to compare reg. compare register circuit comparator timer register timer circuit compare match pin port 16 bit 16 bit
semiconductor group 35 1997-12-01 C505 / C505c C505a / C505ca serial interface (usart) the serial port is full duplex and can operate in four modes (one synchronous mode, three asynchronous modes) as illustrated in table 8 . for clarification some terms regarding the difference between "baud rate clock" and "baud rate" should be mentioned. in the asynchronous modes the serial interfaces require a clock rate which is 16 times the baud rate for internal synchronization. therefore, the baud rate generators/timers have to provide a "baud rate clock" (output signal in figure 14 to the serial interface which - there divided by 16 - results in the actual "baud rate". further, the abbrevation f osc refers to the oscillator frequency (crystal or external clock operation). the variable baud rates for modes 1 and 3 of the serial interface can be derived either from timer 1 or from a decdicated baud rate generator (see figure 14 ). table 8 usart operating modes mode scon description sm0 sm1 0 0 0 shift register mode, fixed baud rate serial data enters and exits through r d; t d outputs the shift clock; 8-bit are transmitted/received (lsb first) 1 0 1 8-bit uart, variable baud rate 10 bits are transmitted (through t d) or received (at r d) 2 1 0 9-bit uart, fixed baud rate 11 bits are transmitted (through t d) or received (at r d) 3 1 1 9-bit uart, variable baud rate like mode 2
semiconductor group 36 1997-12-01 C505 / C505c C505a / C505ca figure 14 block diagram of baud rate generation for the serial interface table 9 below lists the values/formulas for the baud rate calculation of the serial interface with its dependencies of the control bits bd and smod. table 9 serial interface - baud rate dependencies serial interface operating modes active control bits baud rate calculation bd smod mode 0 (shift register) C C f osc / 6 mode 1 (8-bit uart) mode 3 (9-bit uart) 0 x controlled by timer 1 overflow : (2 smod timer 1 overflow rate) / 32 1 x controlled by baud rate generator (2 smod f osc ) / (32 baud rate generator overflow rate) mode 2 (9-bit uart) C 0 1 f osc / 32 f osc / 16 mcs02733 rate f osc (smod) baud clock pcon.7 2 (sm0/ sm1) scon.7 scon.6 only one mode can be selected adcon0.7 (bd) 0 1 0 1 baud rate generator (srelh srell) timer 1 mode 2 mode 0 note: the switch configuration shows the reset state. mode 3 mode 1 overflow 6
semiconductor group 37 1997-12-01 C505 / C505c C505a / C505ca can controller (C505c and C505ca only) the on-chip can controller, compliant to version 2.0b, is the functional heart which provides all resources that are required to run the standard can protocol (11-bit identifiers) as well as the extended can protocol (29-bit identifiers). it provides a sophisticated object layer to relieve the cpu of as much overhead as possible when controlling many different message objects (up to 15). this includes bus arbitration, resending of garbled messages, error handling, interrupt generation, etc. in order to implement the physical layer, external components have to be connected to the C505. the internal bus interface connects the on-chip can controller to the internal bus of the microcontroller. the registers and data locations of the can interface are mapped to a specific 256 byte wide address range of the external data memory area (f700 h to f7ff h ) and can be accessed using movx instructions. figure 15 shows a block diagram of the on-chip can controller. figure 15 can controller block diagram mcb02736 bit timing logic timing generator btl-configuration crc gen./check tx/rx shift register txdc rxdc intelligent interrupt register memory processor register status stream bit error logic management messages handlers control status + to internal bus clocks control messages (to all)
semiconductor group 38 1997-12-01 C505 / C505c C505a / C505ca the tx/rx shift register holds the destuffed bit stream from the bus line to allow the parallel access to the whole data or remote frame for the acceptance match test and the parallel transfer of the frame to and from the intelligent memory. the bit stream processor (bsp) is a sequencer controlling the sequential data stream between the tx/rx shift register, the crc register, and the bus line. the bsp also controls the eml and the parallel data stream between the tx/rx shift register and the intelligent memory such that the processes of reception, arbitration, transmission, and error signalling are performed according to the can protocol. note that the automatic retransmission of messages which have been corrupted by noise or other external error conditions on the bus line is handled by the bsp. the cyclic redundancy check register (crc) generates the cyclic redundancy check code to be transmitted after the data bytes and checks the crc code of incoming messages. this is done by dividing the data stream by the code generator polynomial. the error management logic (eml) is responsible for the fault confinement of the can device. its counters, the receive error counter and the transmit error counter, are incremented and decremented by commands from the bit stream processor. according to the values of the error counters, the can controller is set into the states error active , error passive and busoff. the bit timing logic (btl) monitors the busline input rxdc and handles the busline related bit timing according to the can protocol. the btl synchronizes on a recessive to dominant busline transition at start of frame (hard synchronization) and on any further recessive to dominant busline transition, if the can controller itself does not transmit a dominant bit (resynchronization). the btl also provides programmable time segments to compensate for the propagation delay time and for phase shifts and to define the position of the sample point in the bit time. the programming of the btl depends on the baudrate and on external physical delay times. the intelligent memory (cam/ram array) provides storage for up to 15 message objects of maximum 8 data bytes length. each of these objects has a unique identifier and its own set of control and status bits. after the initial configuration, the intelligent memory can handle the reception and transmission of data without further microcontroller actions.
semiconductor group 39 1997-12-01 C505 / C505c C505a / C505ca can controller software initialization the very first step of the initialization is the can controller input clock selection. a divide-by-2 prescaler is enabled by default after reset ( figure 16 ). setting bit cmod (syscon.3) disables the prescaler. the purpose of the prescaler selection is: C to ensure that the can controller is operable when f osc is over 10 mhz (bit cmod =0) C to achieve the maximum can baudrate of 1 mbaud when f osc is 8 mhz (bit cmod=1) . figure 16 can controller input clock selection note : the switch configuration shows the reset state of bit cmod. frequency (mhz) cmod (syscon.3) brp (btr0.0-5) can baudrate (mbaud/sec) f osc f can 8 8 1 000000 b 1 8 4 0 000000 b 0.5 16 8 0 000000 b 1 syscon.3 0 1 (cmod) mcs03296 2 f osc full-can module can f condition: cmod = 0, when > 10 mhz osc f
semiconductor group 40 1997-12-01 C505 / C505c C505a / C505ca 8-bit a/d converter (C505 and C505c only) the C505/C505c includes a high performance / high speed 8-bit a/d converter (adc) with 8 analog input channels. it operates with a successive approximation technique and provides the following features: C 8 multiplexed input channels (port 1), which can also be used as digital outputs/inputs C 8-bit resolution C internal start-of-conversion trigger C interrupt request generation after each conversion C single or continuous conversion mode the 8-bit adc uses two clock signals for operation : the conversion clock f adc (=1/ t adc ) and the input clock f in (1/ t in ). f adc is derived from the C505 system clock f osc which is applied at the xtal pins via the adc clock prescaler as shown in figure 17 . the input clock is equal to f osc . the conversion clock f adc is limited to a maximum frequency of 1.25 mhz. therefore, the adc clock prescaler must be programmed to a value which assures that the conversion clock does not exceed 1.25 mhz. the prescaler ratio is selected by the bits adcl1 and adcl0 of sfr adcon1. figure 17 8-bit a/d converter clock selection mcu system clock rate ( f osc ) f in [mhz] prescaler ratio f adc [mhz] adcl1 adcl0 2 mhz 2 ? 4 0.5 0 0 5 mhz 5 ? 4 1.25 0 0 6 mhz 6 ? 8 0.75 0 1 10 mhz 10 ? 8 1.25 0 1 12 mhz 12 ? 16 0.75 1 0 16 mhz 16 ? 16 1 1 0 20 mhz 20 ? 16 1.25 1 0 mcs03299 f osc mux clock prescaler conversion clock input clock f adc in f adcl1 a / d converter condition: adc max f < 1.25 mhz in f = f osc = clp 1 32 8 4 16 adcl0
semiconductor group 41 1997-12-01 C505 / C505c C505a / C505ca figure 18 block diagram of the 8-bit a/d converter C505 / C505c adc shaded bit locations are not used in adc-functions. f agnd aref osc v v port 1 conversion prescaler clock mux f conversion clock input clock f in s&h adcon1 (dc ) adcon0 (d8 ) adcl1 h adcl0 h ircon (c0 ) p1ana (90 ) ean7 ean6 h h bsy ean5 ean4 ien1 (b8 ) h write to adst mcb03298 (da ) adst conversion converter a / d continuous mode single / start of msb .6 .5 .4 lsb .2 .3 .1 h (d9 ) addat bus internal h adm mx2 mx2 ean3 ean2 mx1 mx1 mx0 mx0 ean1 iadc ean0 eadc bus internal clk bd swi iex3 iex4 iex5 iex6 tf2 exf2 ecan ex3 ex4 ex5 ex6 swdt exen2
semiconductor group 42 1997-12-01 C505 / C505c C505a / C505ca 10-bit a/d converter (C505a and C505ca only) the C505 includes a high performance / high speed 10-bit a/d-converter (adc) with 8 analog input channels. it operates with a successive approximation technique and uses self calibration mechanisms for reduction and compensation of offset and linearity errors. the a/d converter provides the following features: C 8 multiplexed input channels (port 1), which can also be used as digital inputs/outputs C 10-bit resolution C single or continuous conversion mode C internal start-of-conversion trigger capability C interrupt request generation after each conversion C using successive approximation conversion technique via a capacitor array C built-in hidden calibration of offset and linearity errors the 10-bit adc uses two clock signals for operation : the conversion clock f adc (=1/ t adc ) and the input clock f in (=1/ t in ). f adc is derived from the C505 system clock f osc which is applied at the xtal pins. the input clock f in is equal to f osc the conversion f adc clock is limited to a maximum frequency of 2 mhz. therefore, the adc clock prescaler must be programmed to a value which assures that the conversion clock does not exceed 2 mhz. the prescaler ratio is selected by the bits adcl1 and adcl0 of sfr adcon1. figure 19 10-bit a/d converter clock selection mcs03635 f osc mux clock prescaler conversion clock input clock f adc in f adcl1 a / d converter condition: adc max f < 2 mhz in f = f osc = clp 1 32 8 4 16 adcl0 mcu system clock rate ( f osc ) f in [mhz] prescaler ratio f adc [mhz] adcl1 adcl0 2 mhz 2 ? 4 0.5 0 0 6 mhz 6 ? 4 1.5 0 0 8 mhz 8 ? 4200 12 mhz 12 ? 8 1.5 0 1 16 mhz 16 ? 8201 20 mhz 20 ? 16 1.25 1 0
semiconductor group 43 1997-12-01 C505 / C505c C505a / C505ca figure 20 block diagram of the 10-bit a/d converter adc shaded bit locations are not used in adc-functions. f agnd aref osc v v port 1 conversion prescaler clock mux f conversion clock input clock f in s&h adcon1 (dc ) adcon0 (d8 ) adcl1 h adcl0 h ircon (c0 ) p1ana (90 ) ean7 ean6 h h bsy ean5 ean4 ien1 (b8 ) h write to addatl mcb03636 (da ) adst conversion converter a / d continuous mode single / start of msb .6 .5 .4 lsb .2 .3 .1 h (d9 ) addat bus internal h adm mx2 mx2 ean3 ean2 mx1 mx1 mx0 mx0 ean1 iadc ean0 eadc bus internal .8 .7 iex5 ex5 exf2 exen2 bd clk tf2 swdt iex6 ex6 iex4 ex4 iex3 ex3 swi ecan
semiconductor group 44 1997-12-01 C505 / C505c C505a / C505ca interrupt system the C505 provides 12 interrupt vectors with four priority levels. five interrupt requests can be generated by the on-chip peripherals (timer 0, timer 1, timer 2, serial interface, a/d converter). one interrupt can be generated by the can controller (C505c and C505ca only) or by a software setting and in this case the interrupt vector is the same. six interrupts may be triggered externally (p3.2/ int0 , p3.3/int1 , p1.0/an0/int3 /cc0, p1.1/an1/int4/cc1, p1.2/an2/int5/cc2, p1.3/an3/int6/ cc3). additionally, the p1.5/an5/t2ex can trigger an interrupt. the wake-up from power-down mode interrupt has a special functionality which allows to exit from the software power-down mode by a short low pulse at either pin p3.2/int0 or the pin p4.1/rxdc. figure 21 to 23 give a general overview of the interrupt sources and illustrate the request and the control flags which are described in the next sections. table 10 lists all interrupt sources with their request flags and interrupt vectior addresses. table 10 interrupt source and vectors interrupt source interrupt vector address interrupt request flags external interrupt 0 0003 h ie0 timer 0 overflow 000b h tf0 external interrupt 1 0013 h ie1 timer 1 overflow 001b h tf1 serial channel 0023 h ri / ti timer 2 overflow / ext. reload 002b h tf2 / exf2 a/d converter 0043 h iadc can controller / software interrupt 004b h C / swi external interrupt 3 0053 h iex3 external interrupt 4 005b h iex4 external interrupt 5 0063 h iex5 external interrupt 6 006b h iex6 wake-up from power-down mode 007b h C
semiconductor group 45 1997-12-01 C505 / C505c C505a / C505ca figure 21 interrupt structure, overview part 1 note: each of the 15 can controller message objects (C505c and C505ca only), shown in the shaded area of figure 21 provides the bits/flags. 2 11 199 ea et0 ip1.1 ip0.1 iadc eadc ex0 ip1.0 ip0.0 ie0 ien0.0 tcon.1 0003 h h 0043 h 000b h 004b ien1.0 ircon.0 ien1.1 ien0.1 a / d converter ien0.7 highest priority level lowest priority level p o l l i n g s e q u e n c e mcb03303 it0 tcon.5 tf0 tcon.0 p3.2 / int0 overflow timer 0 bit addressable request flag is cleared by hardware >1 ircon.1 C505c and C505ca only ecan swi mcr0.5 / 4 mcr0.3 / 2 receive message transmit message error status mcr0.0 / 1 intpnd cr.1 cr.3 rxie txie >1 eie cr.2 sie >1 ie can controller interrupt sources
semiconductor group 46 1997-12-01 C505 / C505c C505a / C505ca figure 22 interrupt structure, overview part 2 ea et1 iex3 ex3 ex1 ip1.2 ip0.2 ie1 ien0.2 tcon.3 0013 h h 0053 h 001b h 005b ien1.2 ircon.2 ien1.3 ien0.3 ien0.7 highest priority level lowest priority level p o l l i n g s e q u e n c e mcb03304 it1 tcon.7 tf1 tcon.2 p3.3 / int1 overflow timer 1 bit addressable request flag is cleared by hardware an0 / int3 / t2con.6 i3fr p1.0 / cc0 ip0.3 ip1.3 ircon.3 iex4 an1 / p1.1 / int4 / cc1 ex4
semiconductor group 47 1997-12-01 C505 / C505c C505a / C505ca figure 23 interrupt structure, overview part 3 ea et2 iex5 ex5 es ip1.4 ip0.4 ri ien0.4 scon.0 0023 h h 0063 h 002b h 006b ien1.4 ircon.4 ien1.5 ien0.5 ien0.7 highest priority level lowest priority level p o l l i n g s e q u e n c e mcb03305 usart overflow timer 2 bit addressable request flag is cleared by hardware ip0.5 ip1.5 ircon.5 iex6 an2 / p1.2 / int5 / cc2 ex6 ti scon.1 >1 cc3 int6 / p1.3 / ircon.7 exf2 tf2 ircon.6 >1 ien1.7 exen2 an5 / t2ex p1.5 /
semiconductor group 48 1997-12-01 C505 / C505c C505a / C505ca fail save mechanisms the C505 offers enhanced fail safe mechanisms, which allow an automatic recovery from software upset or hardware failure : C a programmable watchdog timer (wdt), with variable time-out period from 192 m s up to approx. 412.5 ms at 16 mhz. C an oscillator watchdog (owd) which monitors the on-chip oscillator and forces the microcontroller into reset state in case the on-chip oscillator fails; it also provides the clock for a fast internal reset after power-on. the watchdog timer in the C505 is a 15-bit timer, which is incremented by a count rate of f osc /12 upto f osc /192. the system clock of the C505 is divided by two prescalers, a divide-by-two and a divide-by-16 prescaler. for programming of the watchdog timer overflow rate, the upper 7 bits of the watchdog timer can be written. figure 24 shows the block diagram of the watchdog timer unit. figure 24 block diagram of the programmable watchdog timer the watchdog timer can be started by software (bit swdt in sfr ien1) but it cannot be stopped during active mode of the device. if the software fails to refresh the running watchdog timer an internal reset will be initiated on watchdog timer overflow. for refreshing of the watchdog timer the content of the sfr wdtrel is transfered to the upper 7-bit of the watchdog timer. the refresh sequence consists of two consequtive instructions which set the bits wdt and swdt each. the reset cause (external reset or reset caused by the watchdog) can be examined by software (flag wdts). it must be noted, however, that the watchdog timer is halted during the idle mode and power down mode of the processor. mcb03306 ip0 (a9 ) h osc f wdts 2 16 14 07 8 wdtl wdth / 6 external hw reset control logic ien0 (a8 ) h ien1 (b8 ) h 6 70 wdt reset - request wdtpsel wdtrel (86 ) h wdt swdt owds
semiconductor group 49 1997-12-01 C505 / C505c C505a / C505ca oscillator watchdog the oscillator watchdog unit serves for three functions: C monitoring of the on-chip oscillator's function the watchdog supervises the on-chip oscillator's frequency; if it is lower than the frequency of the auxiliary rc oscillator in the watchdog unit, the internal clock is supplied by the rc oscillator and the device is brought into reset; if the failure condition disappears (i.e. the on-chip oscillator has a higher frequency than the rc oscillator), the part, in order to allow the oscillator to stabilize, executes a final reset phase of typ. 1 ms; then the oscillator watchdog reset is released and the part starts program execution from address 0000 h again. C fast internal reset after power-on the oscillator watchdog unit provides a clock supply for the reset before the on-chip oscillator has started. the oscillator watchdog unit also works identically to the monitoring function. C control of external wake-up from software power-down mode when the power-down mode is left by a low level at the p3.2/int0 pin or the p4.1/rxdc pin, the oscillator watchdog unit assures that the microcontroller resumes operation (execution of the power-down wake-up interrupt) with the nominal clock rate. in the power-down mode the rc oscillator and the on-chip oscillator are stopped. both oscillators are started again when power-down mode is released. when the on-chip oscillator has a higher frequency than the rc oscillator, the microcontroller starts program execution by processing a power down interrupt after a final delay of typ. 1 ms in order to allow the on-chip oscillator to stabilize.
semiconductor group 50 1997-12-01 C505 / C505c C505a / C505ca figure 25 functional block diagram of the oscillator watchdog int. clock xtal2 xtal1 owds mcb03308 ip0 (a9 ) h 3 mhz f rc delay 1 f 2 f 2 f 1 f < p4.1 / rxdc start / stop start / stop mode activated power - down power-down mode wake - up interrupt internal reset 10 p3.2 / int0 control ws (pcon1.4) (pcon1.7) ewpd >1 frequency comparator rc on-chip oscillator logic oscillator logic control
semiconductor group 51 1997-12-01 C505 / C505c C505a / C505ca power saving modes the C505 provides two basic power saving modes, the idle mode and the power down mode. additionally, a slow down mode is available. this power saving mode reduces the internal clock rate in normal operating mode and it can be also used for further power reduction in idle mode. C idle mode in the idle mode the main oscillator of the C505 continues to run, but the cpu is gated off from the clock signal. all peripheral units are further provided with the clock. the cpu status is preserved in its entirety. the idle mode can be terminated by any enabled interrupt of a peripheral unit or by a hardware reset. C power down mode the operation of the C505 is completely stopped and the oscillator is turned off. this mode is used to save the contents of the internal ram with a very low standby current. power down mode is entered by software and can be left by reset or by a short low pulse at pin p3.2/ int0 .or p4.1/rxdc. C slow down mode the controller keeps up the full operating functionality, but its normal clock frequency is internally divided by 32. this slows down all parts of the controller, the cpu and all peripherals, to 1/32-th of their normal operating frequency. slowing down the frequency significantly reduces power consumption. in the power down mode of operation, v cc can be reduced to minimize power consumption. it must be ensured, however, that v cc is not reduced before the power down mode is invoked, and that v cc is restored to its normal operating level, before the power down mode is terminated. table 11 gives a general overview of the entry and exit procedures of the power saving modes. table 11 power saving modes overview mode entering (instruction example) leaving by remarks idle mode orl pcon, #01h orl pcon, #20h ocurrence of an interrupt from a peripheral unit cpu clock is stopped; cpu maintains their data; peripheral units are active (if enabled) and provided with clock hardware reset power down mode orl pcon, #02h orl pcon, #40h hardware reset oscillator is stopped; contents of on-chip ram and sfrs are maintained; short low pulse at pin p3.2/int0 or p4.1/rxdc slow down mode orl pcon,#10h anl pcon,#0efh or hardware reset oscillator frequency is reduced to 1/32 of its nominal frequency
semiconductor group 52 1997-12-01 C505 / C505c C505a / C505ca otp memory operation (C505a and C505ca only) the C505a/C505ca contains a 32k byte one-time programmable (otp) program memory. with the C505a/C505ca fast programming cycles are achieved (1 byte in 100 m sec). also several levels of otp memory protection can be selected. for programming of the device, the C505a/C505ca must be put into the programming mode. this typically is done not in-system but in a special programming hardware. in the programming mode the C505a/C505ca operates as a slave device similar as an eprom standalone memory device and must be controlled with address/data information, control lines, and an external 11.5v programming voltage. figure 26 shows the pins of the C505a/C505ca which are required for controlling of the otp programming mode. figure 26 programming mode configuration pmsel1 pmsel0 xtal2 xtal1 d0 - d7 v ss v cc C505a mcs03637 pale ea / prog prd reset psen psel v pp port 2 port 0 a0 - a7 / a8 - a14 C505ca
semiconductor group 53 1997-12-01 C505 / C505c C505a / C505ca pin configuration in programming mode figure 27 p-mqfp-44 pin configuration of the C505a/C505ca in programming mode (top view) ea / n.c. d6 d7 d5 a6 / a14 a5 / a13 psen a7 prog a4 / a12 a3 / a11 xtal2 xtal1 n.c. n.c. psel prd reset n.c. n.c. 11 16 34 39 44 16 21 22 mcp03638 a2 / a10 a1 / a9 v v cc ss a0 / a8 33 31 30 29 28 27 26 25 24 23 32 d4 pmsel0 pale n.c. pmsel1 n.c. 2345 78 10 9 20 19 18 17 15 14 13 12 43 42 41 40 38 37 36 35 C505a d3 d2 d1 d0 n.c. n.c. C505ca pp v n.c. n.c. n.c. n.c. n.c. n.c.
semiconductor group 54 1997-12-01 C505 / C505c C505a / C505ca the following table 12 contains the functional description of all C505a/C505ca pins which are required for otp memory programming. table 12 pin de?nitions and functions in programming mode symbol pin number i/o *) function reset 4 i reset this input must be at static 1 (active) level during the whole programming mode. pmsel0 pmsel1 5 7 i i programming mode selection pins these pins are used to select the different access modes in programming mode. pmsel1,0 must satisfy a setup time to the rising edge of pale. when the logic level of pmsel1,0 is changed, pale must be at low level. psel 8i basic programming mode select this input is used for the basic programming mode selection and must be switched according figure 3-1 . prd 9i programming mode read strobe this input is used for read access control for otp memory read, version register read, and lock bit read operations. pale 10 i programming address latch enable pale is used to latch the high address lines. the high address lines must satisfy a setup and hold time to/from the falling edge of pale. pale must be at low level when the logic level of pmsel1,0 is changed. xtal2 14 o xtal2 output of the inverting oscillator amplifier. xtal1 15 i xtal1 input to the oscillator amplifier. v ss 16 C circuit ground potential must be applied in programming mode. v cc 17 C power supply terminal must be applied in programming mode. *) i = input o = output pmsel1 pmsel0 access mode 0 0 reserved 0 1 read version bytes 1 0 program/read lock bits 1 1 program/read otp memory byte
semiconductor group 55 1997-12-01 C505 / C505c C505a / C505ca p2.0-7 18-25 i address lines p2.0-7 are used as multiplexed address input lines a0-a7 and a8-a14. a8-a14 must be latched with pale. psen 26 i program store enable this input must be at static 0 level during the whole programming mode. prog 27 i programming mode write strobe this input is used in programming mode as a write strobe for otp memory program, and lock bit write operations during basic programming mode selection a low level must be applied to prog . ea /v pp 29 C external access / programming voltage this pin must be at 11.5v (v pp ) voltage level during programming of an otp memory byte or lock bit. during an otp memory read operation this pin must be at v ih high level. this pin is also used for basic programming mode selection. at basic programming mode selection a low level must be applied to ea /v pp . d7-0 30-37 i/o data lines 0-7 during programming mode, data bytes are transferred via the bidirectional port 0 data lines. n.c. 1-3, 6, 11-13, 28, 38-44 C not connected these pins should not be connected in programming mode. *) i = input o = output table 12 pin de?nitions and functions in programming mode (contd) symbol pin number i/o *) function
semiconductor group 56 1997-12-01 C505 / C505c C505a / C505ca basic programming mode selection the basic programming mode selection scheme is shown in figure 28 . figure 28 basic programming mode selection clock (xtal1 / xtal2) reset psen pmsel1,0 prog prd psel pale ea / v pp v cc 5 v v pp ih v "1" "0" 0,1 "0" "1" "0" 0 v ready for access mode selection during this period signals are not actively driven mcs03639 stable
semiconductor group 57 1997-12-01 C505 / C505c C505a / C505ca lock bits programming / read the C505a/C505ca has two programmable lock bits which, when programmed according table 14 , provide four levels of protection for the on-chip otp code memory. the state of the lock bits can also be read. table 13 access modes selection access mode ea / v pp prog prd pmsel address (port 2) data (port 0) 10 program otp memory byte v pp h h h a0-7 a8-14 d0-7 read otp memory byte v ih h program otp lock bits v pp h h l C d1,d0 see table 14 read otp lock bits v ih h read otp version byte v ih h l h byte addr. of version byte d0-7 table 14 lock bit protection types lock bits at d1,d0 protection level protection type d1 d0 1 1 level 0 the otp lock feature is disabled. during normal operation of the C505a/C505ca, the state of the ea pin is not latched on reset. 1 0 level 1 during normal operation of the C505a/C505ca, movc instructions executed from external program memory are disabled from fetching code bytes from internal memory. ea is sampled and latched on reset. an otp memory read operation is only possible using the rom/otp verification mode 2 for protection level 1. further programming of the otp memory is disabled (reprogramming security). 0 1 level 2 same as level 1, but also otp memory read operation using otp verification mode is disabled. 0 0 level 3 same as level 2; but additionally external code execution by setting ea =low during normal operation of the C505a/C505ca is no more possible. external code execution, which is initiated by an internal program (e.g. by an internal jump instruction above the rom boundary), is still possible.
semiconductor group 58 1997-12-01 C505 / C505c C505a / C505ca absolute maximum ratings ambient temperature under bias ( t a ) ......................................................... C 40 c to 125 c storage temperature ( t stg ) .......................................................................... C 65 c to 150 c voltage on v cc pins with respect to ground ( v ss ) ....................................... C 0.5 v to 6.5 v voltage on any pin with respect to ground ( v ss ) ......................................... C 0.5 v to v cc +0.5 v input current on any pin during overload condition..................................... C 10 ma to 10 ma absolute sum of all input currents during overload condition ..................... i 100 ma i power dissipation........................................................................................ tbd note: stresses above those listed under absolute maximum ratings may cause permanent damage of the device. this is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. exposure to absolute maximum rating conditions for longer periods may affect device reliability. during overload conditions ( v in > v cc or v in < v ss ) the voltage on v cc pins with respect to ground ( v ss ) must not exceed the values defined by the absolute maximum ratings.
semiconductor group 59 1997-12-01 C505 / C505c C505a / C505ca dc characteristics v cc = 5 v + 10%, C 15%; v ss = 0 v t a = 0 to 70 c for the sab- versions t a = C 40 to 85 c for the saf- versions t a = C 40 to 110 c for the sah- versions t a = C 40 to 125 c for the sak- versions notes see next but one page 61 parameter symbol limit values unit test condition min. max. input low voltages all except ea , reset ea pin reset pin v il v il1 v il2 C 0.5 C 0.5 C 0.5 0.2 v cc - 0.1 0.2 v cc - 0.3 0.2 v cc + 0.1 v v v C C C input high voltages all except xtal1, reset xtal1 pin reset pin v ih v ih1 v ih2 0.2 v cc + 0.9 0.7 v cc 0.6 v cc v cc + 0.5 v cc + 0.5 v cc + 0.5 v v v C C C output low voltages ports 1, 2, 3, 4 port 0, ale, psen v ol v ol1 C C 0.45 0.45 v v i ol = 1.6 ma 1) i ol = 3.2 ma 1) output high voltages ports 1, 2, 3, 4 port 0 in external bus mode, ale, psen v oh v oh2 2.4 0.9 v cc 2.4 0.9 v cc C C C C v v v v i oh = C 80 m a i oh = C 10 m a ) i oh = C 800 m a i oh = C 80 m a 2) logic 0 input current ports 1, 2, 3, 4 i il C 10 C 70 m a v in = 0.45 v logical 0-to-1 transition current ports 1, 2, 3, 4 i tl C 65 C 650 m a v in = 2 v input leakage current port 0, an0-7 (port 1), ea i li C 1 m a 0.45 < v in < v cc pin capacitance c io C10pf f c 1 mhz, t a = 25 c overload current i ov C 5ma 3) 4) programming voltage v pp 10.9 12.1 v 11.5 v 5% 5) supply current at ea / v cc 30 ma 5) 6)
semiconductor group 60 1997-12-01 C505 / C505c C505a / C505ca power supply currents notes see next page 61 parameter symbol limit values unit test condition typ. 12) max. 13) C505 / C505c active mode 12 mhz 20 mhz i cc i cc 19.7 32 tbd tbd ma 7) idle mode 12 mhz 20 mhz i cc i cc 11.7 17.8 tbd tbd ma 8) active mode with slow-down enabled 12 mhz 20 mhz i cc i cc 4.4 4.9 tbd tbd ma 9) idle mode with slow-down enabled 12 mhz 20 mhz i cc i cc 3.6 4.0 tbd tbd ma 10) power down current i pd 7 tbd m a v cc = 2..5.5 v 11) C505a C505ca active mode 12 mhz 20 mhz i cc i cc 18.2 28.8 tbd tbd ma 7) idle mode 12 mhz 20 mhz i cc i cc 9.4 14.1 tbd tbd ma 8) active mode with slow-down enabled 12 mhz 20 mhz i cc i cc 3.5 4.2 tbd tbd ma 9) idle mode with slow-down enabled 12 mhz 20 mhz i cc i cc 3.0 3.4 tbd tbd ma 10) power down current i pd 40 tbd m a v cc = 2..5.5 v 11)
semiconductor group 61 1997-12-01 C505 / C505c C505a / C505ca notes: 1) capacitive loading on ports 0 and 2 may cause spurious noise pulses to be superimposed on the v ol of ale and port 3. the noise is due to external bus capacitance discharging into the port 0 and port 2 pins when these pins make 1-to-0 transitions during bus operation. in the worst case (capacitive loading > 100 pf), the noise pulse on ale line may exceed 0.8 v. in such cases it may be desirable to qualify ale with a schmitt-trigger, or use an address latch with a schmitt-trigger strobe input. 2) capacitive loading on ports 0 and 2 may cause the v oh on ale and psen to momentarily fall below the 0.9 v cc specification when the address lines are stabilizing. 3) overload conditions occur if the standard operating conditions are exceeded, ie. the voltage on any pin exceeds the specified range (i.e. v ov > v cc + 0.5 v or v ov < v ss - 0.5 v). the supply voltage v cc and v ss must remain within the specified limits. the absolute sum of input currents on all port pins may not exceed 50 ma. 4) not 100% tested, guaranteed by design characterization. 5) only valid for C505a and C505ca. 6) only valid for C505a and C505ca in programming mode. 7) i cc (active mode) is measured with: xtal1 driven with t r , t f = 5 ns, 50% duty cycle , v il = v ss + 0.5 v, v ih = v cc C 0.5 v; xtal2 = n.c.; ea = port 0 = reset = v cc ; all other pins are disconnected. 8) i cc (idle mode) is measured with all output pins disconnected and with all peripherals disabled; xtal1 driven with t r , t f = 5 ns, 50% duty cycle, v il = v ss + 0.5 v, v ih = v cc C 0.5 v; xtal2 = n.c.; reset = ea = v ss ; port0 = v cc ; all other pins are disconnected; 9) i cc (active mode with slow-down mode) is measured : tbd 10) i cc (idle mode with slow-down mode) is measured : tbd 11) i pd (power-down mode) is measured under following conditions: ea = port 0 = v cc ; reset = v ss ; xtal2 = n.c.; xtal1 = v ss ; v agnd = v ss ; v aref = v cc ; all other pins are disconnected. 12) the typical i cc values are periodically measured at t a = + 25 c but not 100% tested. 13) the maximum i cc values are measured under worst case conditions ( t a = 0 c or C 40 c and v cc = 5.5 v)
semiconductor group 62 1997-12-01 C505 / C505c C505a / C505ca figure 29 icc diagram of C505 and C505c C505/C505c: power supply current calculation formulas note: f osc is the oscillator frequency in mhz. i cc values are given in ma. parameter symbol formula active mode i cc typ i cc max tbd tbd idle mode i cc typ i cc max tbd tbd active mode with slow-down enabled i cc typ i cc max tbd tbd idle mode with slow-down enabled i cc typ i cc max tbd tbd cc i 0 0 osc f mcd03640 mhz 20 ma cc max i cc typ i 4 8 12 18 5 10 15 20 25 30 tbd
semiconductor group 63 1997-12-01 C505 / C505c C505a / C505ca figure 30 icc diagram of C505a and C505ca C505a : power supply current calculation formulas note: f osc is the oscillator frequency in mhz. i cc values are given in ma. parameter symbol formula active mode i cc typ i cc max tbd tbd idle mode i cc typ i cc max tbd tbd active mode with slow-down enabled i cc typ i cc max tbd tbd idle mode with slow-down enabled i cc typ i cc max tbd tbd cc i 0 0 osc f mcd03641 mhz 20 ma cc max i cc typ i 4 8 12 18 5 10 15 20 25 30 tbd
semiconductor group 64 1997-12-01 C505 / C505c C505a / C505ca a/d converter characteristics of C505 and C505c v cc = 5 v + 10%, C 15%; v ss = 0 v t a = 0 to 70 c for the sab- versions t a = C 40 to 85 c for the saf- versions t a = C 40 to 110 c for the sah- versions t a = C 40 to 125 c for the sak- versions 4 v v aref v cc + 0.1 v; v ss C 0.1 v v agnd v ss + 0.2 v notes see next page. clock calculation table: further timing conditions : t adc min = 800 ns t in = 1 / f osc = t clp parameter symbol limit values unit test condition min. max. analog input voltage v ain v agnd - 0.2 v aref + 0.2 v 1) sample time t s C 64 t in 32 t in 16 t in 8 t in ns prescaler ? 32 prescaler ? 16 prescaler ? 8 prescaler ? 4 2) conversion cycle time t adcc C 320 t in 160 t in 80 t in 40 t in ns prescaler ? 32 prescaler ? 16 prescaler ? 8 prescaler ? 4 3) total unadjusted error t ue C 2 lsb v ss + 0.5 v v ain v cc C 0.5 v 4) internal resistance of reference voltage source r aref C t adc / 500 - 1 k w t adc in [ns] 5) 6) internal resistance of analog source r asrc C t s / 500 - 1 k w t s in [ns] 2) 6) adc input capacitance c ain C50pf 6) clock prescaler ratio adcl1, 0 t adc t s t adcc ? 32 1 1 32 t in 64 t in 320 t in ? 16 1 0 16 t in 32 t in 160 t in ? 8 0 1 8 t in 16 t in 80 t in ? 4 0 0 4 t in 8 t in 40 t in
semiconductor group 65 1997-12-01 C505 / C505c C505a / C505ca notes: 1) v ain may exeed v agnd or v aref up to the absolute maximum ratings. however, the conversion result in these cases will be 00 h or ff h , respectively. 2) during the sample time the input capacitance c ain must be charged/discharged by the external source. the internal resistance of the analog source must allow the capacitance to reach their final voltage level within t s . after the end of the sample time t s , changes of the analog input voltage have no effect on the conversion result. 3) this parameter includes the sample time t s , the time for determining the digital result. values for the conversion clock t adc depend on programming and can be taken from the table on the previous page. 4) t ue (max.) is tested at C 40 t a 125 c; v cc 5.5 v; v aref v cc + 0.1 v and v ss v agnd . it is guaranteed by design characterization for all other voltages within the defined voltage range. if an overload condition occurs on maximum 2 unused analog input pins and the absolute sum of input overload currents on all analog input pins does not exceed 10 ma, an additional conversion error of 1/2 lsb is permissible. 5) during the conversion the adcs capacitance must be repeatedly charged or discharged. the internal resistance of the reference source must allow the capacitance to reach their final voltage level within the indicated time. the maximum internal resistance results from the programmed conversion timing. 6) not 100% tested, but guaranteed by design characterization.
semiconductor group 66 1997-12-01 C505 / C505c C505a / C505ca a/d converter characteristics of C505a and C505ca v cc = 5 v + 10%, C 15%; v ss = 0 v t a = 0 to 70 c for the sab- versions t a = C 40 to 85 c for the saf- versions t a = C 40 to 110 c for the sah- versions t a = C 40 to 125 c for the sak- versions 4 v v aref v cc + 0.1 v; v ss C 0.1 v v agnd v ss + 0.2 v notes see next page. clock calculation table: further timing conditions : t adc min = 500 ns t in = 1 / f osc = t clp parameter symbol limit values unit test condition min. max. analog input voltage v ain v agnd v aref v 1) sample time t s C 64 t in 32 t in 16 t in 8 t in ns prescaler ? 32 prescaler ? 16 prescaler ? 8 prescaler ? 4 2) conversion cycle time t adcc C 384 t in 192 t in 96 t in 48 t in ns prescaler ? 32 prescaler ? 16 prescaler ? 8 prescaler ? 4 3) total unadjusted error t ue C 2 lsb v ss + 0.5 v v ain v cc -0.5 v 4) C 4 lsb v ss < v ain < v cc + 0.5 v v cc - 0.5 v < v ain < v cc 4) internal resistance of reference voltage source r aref C t adc / 250 - 0.25 k w t adc in [ns] 5) 6) internal resistance of analog source r asrc C t s / 500 - 0.25 k w t s in [ns] 2) 6) adc input capacitance c ain C50pf 6) clock prescaler ratio adcl1, 0 t adc t s t adcc ? 32 1 1 32 t in 64 t in 384 t in ? 16 1 0 16 t in 32 t in 192 t in ? 8 0 1 8 x t in 16 t in 96 t in ? 4 0 0 4 x t in 8 t in 48 t in
semiconductor group 67 1997-12-01 C505 / C505c C505a / C505ca notes: 1) v ain may exeed v agnd or v aref up to the absolute maximum ratings. however, the conversion result in these cases will be x000 h or x3ff h , respectively. 2) during the sample time the input capacitance c ain must be charged/discharged by the external source. the internal resistance of the analog source must allow the capacitance to reach their final voltage level within t s . after the end of the sample time t s , changes of the analog input voltage have no effect on the conversion result. 3) this parameter includes the sample time t s , the time for determining the digital result and the time for the calibration. values for the conversion clock t adc depend on programming and can be taken from the table on the previous page. 4) t ue is tested at v aref = 5.0 v, v agnd = 0 v, v cc = 4.9 v. it is guaranteed by design characterization for all other voltages within the defined voltage range. if an overload condition occurs on maximum 2 unused analog input pins and the absolute sum of input overload currents on all analog input pins does not exceed 10 ma, an additional conversion error of 1/2 lsb is permissible. 5) during the conversion the adcs capacitance must be repeatedly charged or discharged. the internal resistance of the reference source must allow the capacitance to reach their final voltage level within the indicated time. the maximum internal resistance results from the programmed conversion timing. 6) not 100% tested, but guaranteed by design characterization.
semiconductor group 68 1997-12-01 C505 / C505c C505a / C505ca ac characteristics (12 mhz, 0.5 duty cycle) v cc = 5 v + 10%, C 15%; v ss = 0 v t a = 0 to 70 c for the sab- versions t a = C 40 to 85 c for the saf- versions t a = C 40 to 110 c for the sah- versions t a = C 40 to 125 c for the sak- versions ( c l for port 0, ale and psen outputs = 100 pf; c l for all other outputs = 80 pf) program memory characteristics *) interfacing the C505 to devices with float times up to 37 ns is permissible. this limited bus contention will not cause any damage to port 0 drivers. parameter symbol limit values unit 12 mhz clock 0.5 duty cycle variable clock 1/clp = 2 mhz to 12 mhz min. max. min. max. ale pulse width t lhll 43 C clp - 40 C ns address setup to ale t avll 17 C clp/2 - 25 C ns address hold after ale t llax 17 C clp/2 - 25 C ns ale to valid instruction in t lliv C 80 C 2 clp - 87 ns ale to psen t llpl 22 C clp/2 - 20 C ns psen pulse width t plph 95 C 3/2 clp - 30 Cns psen to valid instruction in t pliv C 60 C 3/2 clp - 65 ns input instruction hold after psen t pxix 0C0Cns input instruction float after psen t pxiz *) C 32 C clp/2 - 10 ns address valid after psen t pxav *) 37 C clp/2 - 5 C ns address to valid instruction in t aviv C 148 C 5/2 clp - 60 ns address float to psen t azpl 0C0Cns
semiconductor group 69 1997-12-01 C505 / C505c C505a / C505ca ac characteristics (12 mhz, 0.5 duty cycle, contd) external data memory characteristics parameter symbol limit values unit 12 mhz clock 0.5 duty cycle variable clock 1/clp = 2 mhz to 12 mhz min. max. min. max. rd pulse width t rlrh 180 C 3 clp - 70 C ns wr pulse width t wlwh 180 C 3 clp - 70 C ns address hold after ale t llax2 56 C clp - 27 C ns rd to valid data in t rldv C 118 C 5/2 clp- 90 ns data hold after rd t rhdx 0C0Cns data float after rd t rhdz C 63 C clp - 20 ns ale to valid data in t lldv C 200 C 4 clp - 133 ns address to valid data in t avdv C 220 C 9/2 clp - 155 ns ale to wr or rd t llwl 75 175 3/2 clp - 50 3/2 clp + 50 ns address valid to wr t avwl 70 C 2 clp - 97 C ns wr or rd high to ale high t whlh 17 67 clp/2 - 25 clp/2 + 25 ns data valid to wr transition t qvwx 5 C clp/2 - 37 C ns data setup before wr t qvwh 170 C 7/2 clp - 122 C ns data hold after wr t whqx 15 C clp/2 - 27 C ns address float after rd t rlaz C0C0ns external clock drive characteristics parameter symbol limit values unit variable clock freq. = 2 mhz to 12 mhz min. max. oscillator period clp 83.3 500 ns high time tcl h 20 clp-tcl l ns low time tcl l 20 clp-tcl h ns rise time t r C12ns fall time t f C12ns oscillator duty cycle dc 0.5 0.5 C
semiconductor group 70 1997-12-01 C505 / C505c C505a / C505ca ac characteristics (16 mhz, 0.4 to 0.6 duty cycle) v cc = 5 v +10%, C 15%; v ss = 0 v t a = 0 to 70 c for the sab- versions t a = 40 to 85 c for the saf- versions ( c l for port 0, ale and psen outputs = 100 pf; c l for all other outputs = 80 pf) program memory characteristics *) interfacing the C505 to devices with float times up to 20 ns is permissible. this limited bus contention will not cause any damage to port 0 drivers. parameter symbol limit values unit 16-mhz clock duty cycle 0.4 to 0.6 variable clock 1/clp= 2 mhz to 16 mhz min. max. min. max. ale pulse width t lhll 48 C clp - 15 C ns address setup to ale t avll 10 C tcl hmin -15 C ns address hold after ale t llax 10 C tcl hmin -15 C ns ale to valid instruction in t lliv C 75 C 2 clp - 50 ns ale to psen t llpl 10 C tcl lmin -15 C ns psen pulse width t plph 73 C clp+ tcl hmin -15 Cns psen to valid instruction in t pliv C 38 C clp+ tcl hmin - 50 ns input instruction hold after psen t pxix 0C0Cns input instruction float after psen t pxiz *) C 15 C tcl lmin -10 ns address valid after psen t pxav *) 20 C tcl lmin - 5 C ns address to valid instruction in t aviv C 95 C 2 clp + tcl hmin -55 ns address float to psen t azpl -5 C -5 C ns
semiconductor group 71 1997-12-01 C505 / C505c C505a / C505ca ac characteristics (16 mhz, 0.4 to 0.6 duty cycle, contd) external data memory characteristics parameter symbol limit values unit 16-mhz clock duty cycle 0.4 to 0.6 variable clock 1/clp= 2 mhz to 16 mhz min. max. min. max. rd pulse width t rlrh 158 C 3 clp - 30 C ns wr pulse width t wlwh 158 C 3 clp - 30 C ns address hold after ale t llax2 48 C clp - 15 C ns rd to valid data in t rldv C 100 C 2 clp+ tcl hmin - 50 ns data hold after rd t rhdx 0C0 C ns data float after rd t rhdz C 51 C clp - 12 ns ale to valid data in t lldv C 200 C 4 clp - 50 ns address to valid data in t avdv C 200 C 4 clp + tcl hmin -75 ns ale to wr or rd t llwl 73 103 clp + tcl lmin - 15 clp+ tcl lmin + 15 ns address valid to wr t avwl 95 C 2 clp - 30 C ns wr or rd high to ale high t whlh 10 40 tcl hmin - 15 tcl hmin + 15 ns data valid to wr transition t qvwx 5 C tcl lmin - 20 C ns data setup before wr t qvwh 163 C 3 clp + tcl lmin - 50 Cns data hold after wr t whqx 5 C tcl hmin - 20 C ns address float after rd t rlaz C0C 0 ns
semiconductor group 72 1997-12-01 C505 / C505c C505a / C505ca ac characteristics (16 mhz, 0.4 to 0.6 duty cycle, contd) note: the 16 mhz values in the tables are given as an example for a typical duty cycle variation of the oscillator clock from 0.4 to 0.6. external clock drive characteristics parameter symbol cpu clock = 16 mhz duty cycle 0.4 to 0.6 variable cpu clock 1/clp = 2 to 16 mhz unit min. max. min. max. oscillator period clp 62.5 62.5 62.5 500 ns high time tcl h 25 C 25 clp - tcl l ns low time tcl l 25 C 25 clp - tcl h ns rise time t r C 10 C 10 ns fall time t f C 10 C 10 ns oscillator duty cycle dc 0.4 0.6 25 / clp 1 - 25 / clp C clock cycle tcl 25 37.5 clp * dc min clp * dc max ns
semiconductor group 73 1997-12-01 C505 / C505c C505a / C505ca ac characteristics (20 mhz, 0.5 duty cycle) v cc = 5 v + 10%, C 15%; v ss = 0 v t a = 0 to 70 c for the sab- versions t a = C 40 to 85 c for the saf- versions ( c l for port 0, ale and psen outputs = 100 pf; c l for all other outputs = 80 pf) program memory characteristics *) interfacing the C505 to devices with float times up to 20 ns is permissible. this limited bus contention will not cause any damage to port 0 drivers. parameter symbol limit values unit 20 mhz clock 0.5 duty cycle variable clock 1/clp = 2 mhz to 20 mhz min. max. min. max. ale pulse width t lhll 35 C clp - 15 C ns address setup to ale t avll 10 C clp/2 - 15 C ns address hold after ale t llax 10 C clp/2 - 15 C ns ale to valid instruction in t lliv C 55 C 2 clp - 45 ns ale to psen t llpl 10 C clp/2 - 15 C ns psen pulse width t plph 60 C 3/2 clp - 15 Cns psen to valid instruction in t pliv C 25 C 3/2 clp - 50 ns input instruction hold after psen t pxix 0C0Cns input instruction float after psen t pxiz *) C 20 C clp/2 - 5 ns address valid after psen t pxav *) 20 C clp/2 - 5 C ns address to valid instruction in t aviv C 65 C 5/2 clp - 60 ns address float to psen t azpl - 5 C - 5 C ns
semiconductor group 74 1997-12-01 C505 / C505c C505a / C505ca ac characteristics (20 mhz, 0.5 duty cycle, contd) external data memory characteristics parameter symbol limit values unit 20 mhz clock 0.5 duty cycle variable clock 1/clp = 2 mhz to 20 mhz min. max. min. max. rd pulse width t rlrh 120 C 3 clp - 30 C ns wr pulse width t wlwh 120 C 3 clp - 30 C ns address hold after ale t llax2 35 C clp - 15 C ns rd to valid data in t rldv C 75 C 5/2 clp- 50 ns data hold after rd t rhdx 0C0Cns data float after rd t rhdz C 38 C clp - 12 ns ale to valid data in t lldv C 150 C 4 clp - 50 ns address to valid data in t avdv C 150 C 9/2 clp - 75 ns ale to wr or rd t llwl 60 90 3/2 clp - 15 3/2 clp + 15 ns address valid to wr t avwl 70 C 2 clp - 30 C ns wr or rd high to ale high t whlh 10 40 clp/2 - 15 clp/2 + 15 ns data valid to wr transition t qvwx 5 C clp/2 - 20 C ns data setup before wr t qvwh 125 C 7/2 clp - 50 C ns data hold after wr t whqx 5 C clp/2 - 20 C ns address float after rd t rlaz C0C0ns external clock drive characteristics parameter symbol limit values unit variable clock freq. = 2 mhz to 20 mhz min. max. oscillator period clp 50 500 ns high time tcl h 15 clp-tcl l ns low time tcl l 15 clp-tcl h ns rise time t r C10ns fall time t f C10ns oscillator duty cycle dc 0.5 0.5 C
semiconductor group 75 1997-12-01 C505 / C505c C505a / C505ca figure 31 program memory read cycle mct00096 ale psen port 2 lhll t a8 - a15 a8 - a15 a0 - a7 instr.in a0 - a7 port 0 t avll plph t t llpl t lliv t pliv t azpl t llax t pxiz t pxix t aviv t pxav
semiconductor group 76 1997-12-01 C505 / C505c C505a / C505ca figure 32 data memory read cycle mct00097 ale psen port 2 whlh t port 0 rd t lldv t rlrh t llwl t rldv t avll t llax2 t rlaz t avwl t avdv t rhdx t rhdz a0 - a7 from ri or dpl from pcl a0 - a7 instr. in data in a8 - a15 from pch p2.0 - p2.7 or a8 - a15 from dph
semiconductor group 77 1997-12-01 C505 / C505c C505a / C505ca figure 33 data memory write cycle figure 34 external clock drive on xtal1 mct00098 ale psen port 2 whlh t port 0 wr t wlwh t llwl t qvwx t avll t llax2 t qvwh t avwl t whqx a0 - a7 from ri or dpl from pcl a0 - a7 instr.in data out a8 - a15 from pch p2.0 - p2.7 or a8 - a15 from dph tcl h tcl l clp t r t f 0.2 v cc 0.7 cc v - 0.1 mct03310 xtal1
semiconductor group 78 1997-12-01 C505 / C505c C505a / C505ca ac characteristics of programming mode (C505a and C505ca only) v cc = 5 v 10 %; v pp = 11.5 v 5 %; t a = 25 c 10 c parameter symbol limit values unit min. max. ale pulse width t paw 35 C ns pmsel setup to ale rising edge t pms 10 C address setup to ale, prog , or prd falling edge t pas 10 C ns address hold after ale, prog , or prd falling edge t pah 10 C ns address, data setup to prog or prd t pcs 100 C ns address, data hold after prog or prd t pch 0Cns pmsel setup to prog or prd t pms 10 C ns pmsel hold after prog or prd t pmh 10 C ns prog pulse width t pww 100 C m s prd pulse width t prw 100 C ns address to valid data out t pad C75ns prd to valid data out t prd C20ns data hold after prd t pdh 0Cns data float after prd t pdf C20ns prog high between two consecutive prog low pulses t pwh1 1C m s prd high between two consecutive prd low pulses t pwh2 100 ns xtal clock period t clkp 83.3 500 ns
semiconductor group 79 1997-12-01 C505 / C505c C505a / C505ca figure 35 programming code byte - write cycle timing t paw t pms pah t pas t a8-a14 a0-a7 d0-d7 pcs t pww t pch t t pwh mct03642 h, h pale pmsel1,0 port 2 port 0 prog notes: prd must be high during a programming write cycle.
semiconductor group 80 1997-12-01 C505 / C505c C505a / C505ca figure 36 verify code byte - read cycle timing t paw t pms pah t pas t a8-a14 a0-a7 pad t d0-d7 t pdh t pdf prd t pcs t prw t pch t t pwh mct03643 h, h pale pmsel1,0 port 2 port 0 prd prog must be high during a programming read cycle. notes:
semiconductor group 81 1997-12-01 C505 / C505c C505a / C505ca figure 37 lock bit access timing figure 38 version byte read timing h, l h, l d0, d1 d0, d1 t pcs pms t pmh t t pch pww t pms t prd t t pdh pdf t pmh t prw t mct03644 pmsel1,0 port 0 prog prd pale should be low during a lock bit read / write cycle. note: e. g. fd d0-7 t pcs pms t t pdh pdf t pmh t mct03645 port 2 port 0 prd pmsel1,0 l, h h prw t prd t pch t prog must be high during a programming read cycle. note:
semiconductor group 82 1997-12-01 C505 / C505c C505a / C505ca rom/otp verification characteristics for C505 rom verification mode 1 (C505-2r and C505c-2r only) figure 39 rom verification mode 1 parameter symbol limit values unit min. max. address to valid data t avqv C 5 clp ns p1.0 - p1.7 p2.0 - p2.6 port 0 address data out address: p1.0 - p1.7 = a0 - a7 p2.0 - p2.5 = a8 - a14 data: p0.0 - p0.7 = d0 - d7 inputs: p2.6, p2.7, psen = ale, ea = reset = v ss v ih v ih2 avqv t mct03693
semiconductor group 83 1997-12-01 C505 / C505c C505a / C505ca rom/otp verification characteristics for C505 (contd) rom/otp verification mode 2 figure 40 rom/otp verification mode 2 parameter symbol limit values unit min. typ max. ale pulse width t awd C clp C ns ale period t acy C 6 clp C ns data valid after ale t dva C C 2 clp ns data stable after ale t dsa 4 clp C C ns p3.5 setup to ale low t as C t cl Cns oscillator frequency 1/ clp 4C6mhz mct02613 t acy t awd t dsa dva t t as data valid ale port 0 p3.5
semiconductor group 84 1997-12-01 C505 / C505c C505a / C505ca figure 41 ac testing: input, output waveforms figure 42 ac testing : float waveforms figure 43 recommended oscillator circuits for crystal oscillator ac inputs during testing are driven at v cc - 0.5 v for a logic 1 and 0.45 v for a logic 0. timing measurements are made at v ihmin for a logic 1 and v ilmax for a logic 0. 0.45 v v cc 0.2 -0.1 +0.9 0.2 cc v test points mct00039 v cc -0.5 v for timing purposes a port pin is no longer floating when a 100 mv change from load voltage occurs and begins to float when a 100 mv change from the loaded v oh / v ol level occurs. i ol / i oh 3 20 ma mct00038 v load v load -0.1 v +0.1 v load v timing reference points v oh -0.1 v +0.1 v ol v mcs03311 c 2 - 20 mhz xtal2 xtal1 xtal1 xtal2 n.c. external oscillator signal crystal oscillator mode driving from external source crystal mode: c = 20 pf 10 pf (incl. stray capacitance) c
semiconductor group 85 1997-12-01 C505 / C505c C505a / C505ca figure 44 p-mqfp-44 package outline gpm05622 p-mqfp-44-1 (smd) (plastic metric quad flat package) sorts of packing package outlines for tubes, trays etc. are contained in our data book package information dimensions in mm smd = surface mounted device


▲Up To Search▲   

 
Price & Availability of C505

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X